เหลือสร้าง schema และสร้าง api ของ
- admin
- type
- docker
- docker compose
- nodejs v.14+
- make (optional)
... or you need to use your db server. you can config at .env
then docker is optional.
docker exec -it borrow-backend-mongodb-database-1 bash
mongosh -u root -p example
# run db first
docker compose up -d
npx prisma db seed
npm run start
- start
make up # for linux
docker compose up -d # any
- stop
make down # for linux
docker compose down # any
Could config schema at prisma/schema.prisma
and run
npm run migrate
- import
borrow-project.postman_collection.json
to postman - create env
- select env
- run it