RESTful-API Backend for CPA network, developed with Nest.js on TypeScript language, with framework with PostgreSQL using Sequelize ORM and Swagger at the Backend Summer School from the Lanit company.
$ npm installCreate file .env (there is file .env.example that you can use as template). In .env file you need to write:
-
In port field write your localhost port (default 5000)
-
For the correct operation of the server with PostgreSQL database write your POSTGRES_USER and POSTGRES_PORT. Server creates tables automaticly.
-
JWT_SECRET is also in .env file, you can use any keyword
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodTo open Swagger and test some requests you need to open page "Swagger" (http://localhost:5000/api/)