An open API service indexing awesome lists of open source software.

https://github.com/mmrosadev/book-rental-control-backend

NodeJS api to control book rental
https://github.com/mmrosadev/book-rental-control-backend

docker docker-compose koa nodejs postgres typeorm typescript

Last synced: about 1 month ago
JSON representation

NodeJS api to control book rental

Awesome Lists containing this project

README

        

# book-rental-control-backend

NodeJS api to manage book rental

### how to run this application by docker?

> docker compose up -d book-rental-control

> docker compose exec book-rental-control bash

> npm run migration:run

### how to run this application on local without docker?

- Install postgres
- Create connection for database
- Create database
- Adjust enviroment's variable in .env

> npm run start

> npm run migration:run

### folder structure

- src
- domain
- entity (Domain entities)
- usecase
- infra
- datasource
- database
- entities (Persistence entities)
- migrations
- http
- controller
- repository