Nest framework TypeScript starter repository.
$ npm install
$ npm run build
$ npm run migration:run
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
After running migrations, the system will automatically create two users and a default Parking Spot.
Admin User
- Permissions: Admin
- API Token: Check the "token" column in the users table (not encrypted for simplicity).
Standard User
- Permissions: Standard
- API Token: Check the "token" column in the users table (not encrypted for simplicity).
- Each request should be done sending the following headers:
api_token {token}
A default Parking Spot with ID 1 will be created.
- The Swagger Documentation and API endpoints can be accessed through the
/api
route. - API requests can be made through the following link to Postman to test and visualize responses.
For optimal setup, ensure you have an environment file at the root level.
- Create an environment file named .env at the root of your project.
- Add any necessary environment variables in this file, such as API keys, database connection strings, etc.
There is an .env.example file that can be used as a reference.
This project is developed using Node.js. It is recommended to use Node.js version 18.12.1 or later.
- Framework NestJS. Version 9.1.8
- ExpressJS
- Postgres
- Typeorm. Version ^0.3.20
- Typescript. Version "^4.7.4"
- Author - Juan Ignacio Benito
- Email - benitojuanignacio@gmail.com