- Apollo graphql express server
- graphql-compose-mongoose
- JWT authenticaion
- Subscription
- Intall Redis locally
- Install Mongo locally
- cp .env.example .env
Note: I highly recommend installing nodemon.
nodemon is a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected.
nodemon does not require any additional changes to your code or method of development. nodemon is a replacement wrapper for node
, to use nodemon
replace the word node
on the command line when executing your script.
yarn global add nodemon
.
yarn start
yarn start:local # with nodemon
docker-compose up -d --build
yarn lint
yarn lint:fix # with prefix --fix
├─ src
│ ├─ graphql
│ │ ├─ index.js
│ │ ├─ schema.js
│ │ └─ types.js
│ ├─ middleware
│ │ ├─ authentication.js
│ │ ├─ authMiddleware.js
│ │ └─ index.js
│ ├─ module
│ │ ├─ user
│ │ │ ├─ service
│ │ │ │ ├─ index.js
│ │ │ │ └─ userService.js
│ │ │ ├─ index.js
│ │ │ ├─ resolvers.js
│ │ │ ├─ types.js
│ │ │ └─ user.js
│ │ └─ index.js
│ ├─ service
│ │ ├─ logger.js
│ ├─ validator
│ │ ├─ index.js
│ │ └─ userValidator.js
│ ├─ index.js
│ ├─ mongoose.js
│ └─ redis.js
├─ .dockerignore
├─ .env.example
├─ .eslintignore
├─ .eslint
├─ .gitignore
├─ Dockerfile
├─ Dockerfile.dev
├─ LICENSE
├─ README.md
├─ docker-compose.dev.yml
├─ docker-compose.yml
└─ package.json
This project is an open-source with an MIT License