This is a SUPER BASIC example of a CalDav server implemented in Node.js. It is designed for learning purposes to practically show how a CalDav server can be implemented. It is not made for production use, only for educational use.
This project implements a very basic CalDav server using Node.js. It allows basic operations such as retrieving, updating, and deleting calendar data.
- GET
/caldav: Retrieves calendar data. - PUT
/caldav: Updates or adds a new event to the calendar. - DELETE
/caldav: Deletes calendar data.
- Clone this repository:
git clone https://github.com/SaidTorres3/CalDav-NodeJS.git
- Navigate to the project directory:
cd CalDav-NodeJS - Install the dependencies:
npm install
-
Create a new folder called
datain the project directory. -
Create a new file called
calendar.icsin thedatafolder. -
Start the server:
npm run start
-
The server will be listening on port
8008. -
Create a new calendar with the URL
http://localhost:8008/caldavin a calendar client like Thunderbird. It doesn't require login.