Spaces:
Sleeping
Sleeping
Description
Nest framework TypeScript starter repository.
Project setup
1. Install all dependencies
$ npm install
2. Initialize database
- Download and install
postgreSQL
. - Create schema name
pbl6
or whatever.
3. Create .env file
- Copy from
.env.example
and fill
Compile and run the project
# development
$ npm run start
# watch mode
$ npm run start:dev
In product:
Notice
# generate migrations
$ npm run db:migrate:generate src/migrations/NameOfMigrations
# update database follow migrations
$ npm run db:migrate:up
# down database follow migrations
$ npm run db:migrate:down
# Generate resource (include module, controller, service) and moving them to modules
$ npx nest g resource modules/<resource_name>