Node.js API + PostgreSQL + Redis cache
This is based on Nest.js Framework using TypeScript 4
- Support ES6/ES7 features
- Eslint + Prettier + Husky (git hooks)
- Docker Compose
- node >= 14.15.0 (LTS)
- npm >= 6
- postgres >= 13.0
- postgres >= 6.0
- typescript >= 4.0
├── src
│├── config
││└── ...
││
│├── modules
││├── app
│││ └── ...
││├── auth
│││ └── ...
││└── users
││ └── ...
││
│├── dto
││└── ...
│├── middlewares
││└── ...
│├── decorators
││└── ...
│├── pipes
││└── ...
│├── guards
││└── ...
││
│└── main.ts
│
├── docker-compose.yml
├── index.js
├── nest-cli.json
├── package.json
├── package-lock.json
├── README.md
├── tsconfig.build.json
└── tsconfig.json
To start the application in localhost (watch) mode, run:
npm run start:dev
NestJS server listening on http://localhost:5000/
The developer mode will watch your changes then will transpile the TypeScript code and re-run the NodeJS application automatically.
To start the application run:
docker-compose up
In root folder you can find .env
and docker-compose.yml
files.
You can change those for your purposes.
TODO
npm run deploy:{provider}
Swagger documentation will be available at http://localhost:5000/api
Made with 🖤 by GeroSalas
- LinkedIn - https://www.linkedin.com/in/geronimops/