Book Loan API Spesification
-
Clone the repository
git clone https://github.com/hafizulf/book-loan
-
Install dependencies
# checkout to directory cd book-loan # install npm install
-
Create new database
-
Create .
env
file & set database url, etc# example DATABASE_URL="postgresql://postgres:postgres@localhost:5432/dbname?schema=public"
-
Run migration
npx prisma migrate dev
-
Start the server
npm run start
-
Run tests
npm run test
-
Server is running on
http://localhost:${APP_PORT}
-
Access documentation at
http://localhost:${APP_PORT}/api
- Fork the repository
- Create a new branch
- Create a pull request
MIT
Hafizul Furqan
0.0.1
- 0.0.1: Initial release