- Public/private: toggle is_public via PUT /calendars/{id}; generate/clear
public_token and return ical_url when public
- Public feed: GET /cal/{token}/feed.ics (no auth) for subscription in
Google/Apple/Outlook calendars
- Full iCal export: use golang-ical; VALARM, ATTENDEE, all-day (VALUE=DATE),
RRULE, DTSTAMP, CREATED, LAST-MODIFIED
- Full iCal import: parse TZID, VALUE=DATE, VALARM, ATTENDEE, RRULE
- Import from URL: POST /calendars/import-url with calendar_id + url
- Migration: unique index on public_token, calendar_subscriptions table
- Config: BASE_URL for ical_url; Calendar model + API: ical_url field
- Docs: OpenAPI, llms.txt, README, SKILL.md, about/overview
Made-with: Cursor
16 lines
390 B
Plaintext
16 lines
390 B
Plaintext
# Database
|
|
DATABASE_URL=postgres://calendarapi:password@localhost:5432/calendarapi?sslmode=disable
|
|
|
|
# Auth
|
|
JWT_SECRET=dev-secret-change-me
|
|
|
|
# Redis (optional — enables background reminder jobs)
|
|
# REDIS_ADDR=localhost:6379
|
|
|
|
# Server
|
|
SERVER_PORT=3019
|
|
ENV=development
|
|
|
|
# Base URL (used for public iCal feed URLs; defaults to http://localhost:$SERVER_PORT)
|
|
# BASE_URL=https://api.example.com
|