A Node.js REST API that allows you to create, fetch, and parse calendar events in .ics format using a DAViCal server.
- Create calendar events with custom metadata (icon, color, full description…)
- Retrieve raw
.icsfiles - Parse and return events as JSON
- Secure connection using credentials stored in a
.envfile
git clone https://github.com/your-username/your-repo.git
cd your-reponpm installCreate a .env file at the root of the project:
DAVICAL_URL=
PORT=PORT=3001
DAVICAL_USERNAME=
DAVICAL_PASSWORD=
node app.jsor with nodemon:
npx nodemon app.jsServer will be running at: http://localhost:3001 (default port : 3001)
Send a POST request with the following JSON body to create a new calendar event:
{
"title": "Team Meeting",
"description": "Weekly sync with the development team",
"full_description": "Discuss project progress, blockers, and upcoming sprint goals. Everyone must prepare a brief update.",
"start": "2025-05-09T10:30:00+02:00",
"end": "2025-05-09T11:30:00+02:00",
"icon": "planning",
"color": "#3399ff"
}