Skip to content

vslyubimov/CPA-Backend-API

Repository files navigation

Nest Logo

NPM Version Package License NPM Downloads

Description

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.

Installation

$ npm install

Create 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

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

To open Swagger and test some requests you need to open page "Swagger" (http://localhost:5000/api/)

About

CPA Backend API developed on Lanit summer school

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published