Docker (only test end to end)
Node v20.0.0
- Install dependencies
npm install
- Init api-server
npm run dev
npm test
- Init db test with Docker
./
docker-compose up
- Run test end to end
./api
npm run test:e2e
- NodeJS
- ExpressJS
- TypeScript
- Zod schema validation
- Testing with Jest (unit test)
- Testing with playwright (end to end test)
- Supabase (SQL Database and Storage)
- Docker
Base URL /api/books
| HTTP Method | URI path | Description |
|---|---|---|
| GET | / |
All books list |
| GET | /:id |
Get one book details |
| POST | /create |
Create a new book |
| PUT | /edit/:id |
Edit book |
| DELETE | /delete/:id |
Delete book by ID |
Base URL /api/upload
| HTTP Method | URI path | Description |
|---|---|---|
| POST | / |
Upload file to Supabase Storage |