This is a Next.js project bootstrapped with create-next-app
.
- Copy the environment file
cp .env.sample .env
- Spin up the docker containers
docker compose up -d
- Run database migrations (inside the container)
docker exec web sh
> npm run db:migrate
This projects comes with Drizzle Studio installed. You can access the client UI from the following url: https://local.drizzle.studio/?host=127.0.0.1&port=3001
curl http://localhost:3000/api/events
curl http://localhost:3000/api/events/1
curl -d '{"title":"My event", "location":"Santiago", "startAt": "2024-12-01T08:00:00", "endAt": "2024-12-01T10:00:00"}' -H "Content-Type: application/json" -X POST http://localhost:3000/api/events
curl -d '{"description":"My event description"}' -H "Content-Type: application/json" -X POST http://localhost:3000/api/events/1
curl -X DELETE http://localhost:3000/api/events/1