https://github.com/mmrosatab/book-rental-control-backend
NodeJS api to control book rental
https://github.com/mmrosatab/book-rental-control-backend
koa nodejs postgres typeorm typescript
Last synced: 3 months ago
JSON representation
NodeJS api to control book rental
- Host: GitHub
- URL: https://github.com/mmrosatab/book-rental-control-backend
- Owner: mmrosatab
- Created: 2024-10-11T22:11:19.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-02-12T19:31:27.000Z (3 months ago)
- Last Synced: 2025-02-12T20:29:22.880Z (3 months ago)
- Topics: koa, nodejs, postgres, typeorm, typescript
- Language: TypeScript
- Homepage:
- Size: 233 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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