This is a simple calendar API called "Chris Calendar" built using Node.js, Express, and MongoDB. It supports CRUD operations for event storage.
- Clone the repository.
- Navigate to the project directory.
- Run
npm install
to install dependencies.
- Node.js
- Express
- MongoDB
- CRUD operations for event storage:
- Create Event
- Read Events
- Update Event
- Delete Event
POST /event
: Create a new event.GET /events
: Get all events.GET /event/:id
: Get an event by its ID.PUT /event/:id
: Update an event by its ID.DELETE /event/:id
: Delete an event by its ID.
- Ensure MongoDB is running.
- Run
node app.js
to start the server. - Server will be running on
http://localhost:3000
.
MIT License
Simply put this content in a README.md
file in your project directory.