Configure NodeJS with version 18 lts.
nvm install --lts
nvm use --lts
To clone this repository just copy and run this command in your terminal.
git clone https://github.com/wilop/news-cover-graphql.git
Add a list of dependencies used in project here.
- @apollo/server
- dotenv
- graphql
- jasonwebtoken
- mongoose
- nodemon
To install dependencies just copy and run this command in your terminal.
npm install
To install additional dependencies just run npm install
package in your terminal and add it to previous list.
After installing dotenv, create a file name .env and add the following variables with respective information, this is an example and the '* *' should be ignore:
DB_CONNECTION = mongodb://127.0.0.1:27017/mynewscover *mongo db string conection*
PORT = 4000 *port to be listeng in the app*
URL = http://locahost
Add directories and a short description here.
models:
This directory contains data models.
controllers:
This directory contains controller.
Add a checklist of things to do in this section.
- GraphQL queries
- Get all news
- Get news by category
- Search news by keyword
- Filter news by tag names
- Implement JWT authentication