This is a simple Express.js application for practicing the concepts learned in the Harisenin Full Stack Developer Bootcamp.
- Clone this repository
- Run
npm install
- Run
cp .env.example .env
- Update database credentials & set JWT secret in
.env
file - Run
sequelize db:migrate
- Run
sequelize db:seed:all
- Run
npm run dev
- POST
/api/auth/register
Register a new user - POST
/api/auth/login
Get JWT token
- GET
/api/books?keyword=&page=1&limit=5
Get all books with pagination and search
- GET
/api/orders
Get my orders - POST
/api/orders
Create an order