Simple Nest online library service.
- Authentication & Authorization
- View Catalog with available books
- Book reservation
- Book return
- Book search
- Book management for admin
$ npm install
Before running the app in production
mode, you need to create .env
file in the root directory with the following variables:
Before running the app in development
mode, you need to create .env.development
file in the root directory with the following variables:
You can use a .env.example file as a template.
Variable | Description |
---|---|
PORT | Application port |
DATABASE_NAME | Database file name |
JWT_SECRET | JWT secret |
JWT_EXPIRES_ID | The time of JWT token lifetime |
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
You can use Docker to run the app.
Running this command will create a Docker container with the app.
Note: Docker uses environment variables to configure the app from
.env
file
$ docker-compose up -d
You can use Swagger UI
to view the generated API documentation.
Just go to https://localhost:PORT/api/docs
in your browser.
- Advanced NodeJs Backend Development
- Creation of the blog with NestJS
- Building an E-Commerce API using Nestjs, SQLite, and TypeORM
- Official Nestjs Documentation
Made by @truehazker for StartBlock.