npm install
cp .env.example .env
- Update the .env file with a random secret for JWT
- Create the database and run the migrations
npm run migrate
- Seed the database with the initial data (Appointment Slots)
npm run seed
npm run dev
View Database with (Drizzle Studio)
npm run studio
GET /api/v1/slots
GET /api/v1/slots?dateTime=2024-04-04 10:00:00
GET /api/v1/bookings
POST /api/v1/bookings
{
"dateTime": "2024-04-04 10:00:00"
}
DELETE /api/v1/bookings
{
"dateTime": "2024-04-04 10:00:00"
}
PATCH /api/v1/bookings
{
"dateTime": "2024-04-04 10:00:00"
}