Skip to content

Repository files navigation

How to Build an MDX Blog with Next.js 15

A simple API which can do CRUD operations on Events, also has authentication.

thumbnail

Youtube: Watch

Getting Started

  1. Clone the repository:

    git clone https://github.com/thetechmaze/event-management-api
  2. Install Dependencies

    npm install
  3. Fill in the ENV variables

    MONGODB_URI=
    PORT=5000
    JWT_SECRET=
    
  4. 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}

License

This project is open source and available under the MIT Licence.

About

A simple API which can do CRUD operations on Events, also has authentication.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages