https://github.com/dodycode/nestjs-book-api
Books API that build for learning about Repository Design Pattern
https://github.com/dodycode/nestjs-book-api
Last synced: 11 months ago
JSON representation
Books API that build for learning about Repository Design Pattern
- Host: GitHub
- URL: https://github.com/dodycode/nestjs-book-api
- Owner: dodycode
- Created: 2022-09-17T15:53:12.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-18T03:32:19.000Z (almost 4 years ago)
- Last Synced: 2025-05-19T01:37:52.571Z (about 1 year ago)
- Language: TypeScript
- Size: 184 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Books API (WORK IN PROGRESS)
Nest JS Books API that implements [Repository Design Pattern](https://cubettech.com/resources/blog/introduction-to-repository-design-pattern/) with Prisma ORM.
## How to run
- Install Docker
- run `cp .env.example .env`
- run `docker-compose up -d`
- run `npm install`
- run `npx prisma db push` (migrate tables)
- done. You can access the api on localhost:3000
### Things to do
- [x] Finishing Author API (CRUD: /author)
- [ ] Finishing Book API (CRUD: /book)
- [ ] Finishing Genre API (CRUD: /genre)
- [x] Implements Validation Schema
- [ ] Implements Swagger Open API for API Documentation
- [ ] Implements Authentications for admin
### Techstack
- NestJS
- Docker
- MySQL
- PhpMyAdmin
- Prisma ORM
- Prisma Filter Query Parser (by [Muhammad Firdaus Sati](https://github.com/krsbx/prisma-fqp))
- Lodash JS
- Zod