https://github.com/romijulianto/rgb-bootcamp-weekly-task-nestjs-romijulianto
Task Weekly RGB Bootcamp - Build Clinic API using NestJS (MySQL, JWT)
https://github.com/romijulianto/rgb-bootcamp-weekly-task-nestjs-romijulianto
Last synced: 2 months ago
JSON representation
Task Weekly RGB Bootcamp - Build Clinic API using NestJS (MySQL, JWT)
- Host: GitHub
- URL: https://github.com/romijulianto/rgb-bootcamp-weekly-task-nestjs-romijulianto
- Owner: romijulianto
- Created: 2022-10-02T23:39:04.000Z (over 2 years ago)
- Default Branch: backend
- Last Pushed: 2022-10-03T19:21:56.000Z (over 2 years ago)
- Last Synced: 2025-01-19T08:15:14.428Z (4 months ago)
- Language: TypeScript
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Practice REST API Using NestJS and Sequelize
_Documentation by Romi Julianto_
## Installation
```bash
- npm i -g @nestjs/cli
- nest new nest-sequelize-simple-api
- npm install -g sequelize
- npm install --save sequelize sequelize-typescript mysql2
- npm install --save-dev @types/sequelize
- npm install dotenv --save
- npm i --save @nestjs/config
- npm install --save @nestjs/passport passport passport-local
- npm install --save-dev @types/passport-local
- npm install bcrypt --save
- npm install @nestjs/jwt passport-jwt
- npm i class-validator class-transformer --save
- npm i --save class-validator class-transformer
```## Generate Module NestJS
```bash
- nest generate module core/database
- nest generate module modules/users
- nest generate service modules/users
- nest generate module modules/auth
- nest generate service modules/auth
- nest g co modules/auth
- nest g module modules/clinics
- nest g service modules/clinics
- nest g controller modules/clinics
```### Referensi
- [How to Build Web APIs with NestJS, Postgres, and Sequelize - A Beginner's Guide](https://www.freecodecamp.org/news/build-web-apis-with-nestjs-beginners-guide/)