- Logger using winston.
- Most important middlewares.
- We can use it with http or https via environment variables.
- Socket support (http & https) but not working with cluster (known issue it needs socket Adapter with redis server).
- Implemented Localized and translation could be found in (req.app.locals.trans) Object.
- Response compressor for response size more than 1 M.
- Graphql implemented (The Example is not working but it is for clarifications)
- clone repo
git clone https://gitlab.com/Fagr/readyServer.git. - run
npm i. - create
.envfile usingcp .env.example .env. - run
npm run secretto generate secret key will be used to hash passwords or any use in environment variable calledAPP_SECRET. - run
npm run startto start server. - run
npm run devto start server withnodemonfor development. - please follow .env.example comments.
- to use graphql open (
http://localhost:3000/graphql) Note: orhttpsif you used it and maybe another port as per.envfile pre-configration by you.
- In
api/v1folder