Learning project to learn
- Typescript
- NodeJs
- Express
- Apollo Server & Client
- NextJs
These are the services required to run this application
- Redis
- PostgreSQL
Run docker-compose up
to start required services.
Dev
npm run dev
Prod
npm start
Generate tsconfig
npx tsconfig.json
In my opinion, tsc-watch is better than nodemon.
"watch": "tsc -w",
"nodemon": "nodemon ./dist/index.js",
"dev": "concurrently --kill-others \"npm:watch\" \"npm:nodemon\""
- concurrently
- nodemon
"dev": "tsc-watch --onSuccess \"node ./dist/index.js\""
- tsc-watch
errorPolicy:'all'
is better than errorPolicy: 'none'