Files
IISA/README.md
2025-08-28 18:09:45 +03:00

55 lines
1.0 KiB
Markdown

<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
</p>
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest
## Description
IISA Backend application
Using [Nest](https://github.com/nestjs/nest) framework.
## Project setup
Install packages
```bash
$ npm install
```
Generate Prisma files
```bash
$ npx prisma generate reset
```
Project requires postgreSQL service.
Create .env file in root of the project, example:
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/iisa"
HOST_URL="http://localhost:3000"
Apply Prisma db migrations
```bash
$ npx prisma migrate reset
```
## Compile and run the project
```bash
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
```
## Swagger
Navigate http://localhost:3000/api to access swagger api documentation