A simple API which can do CRUD operations on Events, also has authentication.
Youtube: Watch
-
Clone the repository:
git clone https://github.com/thetechmaze/event-management-api
-
Install Dependencies
npm install
-
Fill in the ENV variables
MONGODB_URI= PORT=5000 JWT_SECRET= -
Run the development server
npm run dev
You can use any api client like Postman etc.. and you can access the api with following routes.
Routes
register user - (post) http://localhost:5000/users/register
login user - (post) http://localhost:5000/users/login
create event - (post) http://localhost:5000/events
get events - (get) http://localhost:5000/events
get event - (get) http://localhost:5000/events/{id}
update event - (put) http://localhost:5000/events/{id}
delete event - (delete) http://localhost:5000/events/{id}
This project is open source and available under the MIT Licence.