Skip to content

LemontechSA/lemon-calendar

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Lemon Calendar

Project setup

  1. Copy the environment file
cp .env.sample .env
  1. Spin up the docker containers
docker compose up -d
  1. Run database migrations (inside the container)
docker exec web sh
> npm run db:migrate

Database Client

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

API Docs

List all events

curl http://localhost:3000/api/events

Get event details

curl http://localhost:3000/api/events/1

Create a new event

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

Update an existing event

curl -d '{"description":"My event description"}' -H "Content-Type: application/json" -X POST http://localhost:3000/api/events/1

Delete an event

curl -X DELETE http://localhost:3000/api/events/1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published