Skip to content

AlexanderYovzhenko/API_BackEnd

Repository files navigation

API_BackEnd

Nest Logo

Description

An application built with NestJS and microservices (PostgreSQL, Sequelize, RabbitMQ, Docker) for movies, including registration and authentication


Documentation for endpoints

Home localhost:4000 - home page, check if the server is running

Docs localhost:4000/api/docs - detailed documentation


PgAdmin and RabbitMQ managers

PgAdmin localhost:15432 - Postgres Admin

RabbitMQ localhost:15672 - rabbitMQ manager


Downloading

git clone https://github.com/AlexanderYovzhenko/API_BackEnd.git

Running application in docker

docker compose up --build

Restore database

docker cp ./backend.dump postgres:/backend.dump
docker exec -i -t postgres sh
pg_restore -U postgres -d backend --clean backend.dump
exit

Installing NPM modules

npm install

Testing

npm run test
npm run test:detail
npm run test:cov
npm run test:e2e

Auto-fix and format

npm run lint

Added admin role to admin user (Добавлена роль admin пользователю admin)

# login
{
  "email": "[email protected]",
  "password": "admin"
}

Scheme tables

scheme tables