Coder Social home page Coder Social logo

event-management's Introduction

Event Management Api

The Event Management System is a web application that provides API endpoints for managing events, user registration, login, and user profiles.

Features

  • User Registration: Users can register with their email and password.
  • User Login: Users can login with their registered email and password to receive an authentication token.
  • User Logout: Users can logout and clear the authentication token.
  • Get Profile: Users can get information about their profile.
  • Update Profile: Users can update their profile.
  • Create Event: Users can create new events by providing necessary information.
  • Update Event: Users can update the details of existing events.
  • Delete Event: Users can delete existing events.
  • Get Event: Users can retrieve details of existing events by their ID.
  • List Events: Users can retrieve a list of all existing events, with optional filtering by event date.
  • Rsvp Event: Users can choose whether they are attending to an event or not.

Api Documentation

  • Click here for documentation of the api in postman (also a collection).

Additional Information

I used Node.js and Express to build REST APIs, MongoDB for the database, Joi for data validation, JWT for user authentication, bcrypt for password security, Mongoose for database connection, and implemented rate limiting to prevent abuse of the APIs. Additionally, I added an RSVP (Responding to Event) feature, allowing users to indicate their attendance or interest in events. This feature enhances the usability and functionality of the event management system. Postman was used for API testing throughout the development process.

Installation and Configuration

  1. Clone the repository
  2. Install the dependencies:
  npm install

3.Create a .env file in the project root directory and add the following environment variables to the .env file:

  NODE_ENV=development
  PORT=5000
  MONGO_URI=<your-mongodb-uri>
  JWT_SECRET=<your-jwt-secret>

Usage

  1. To run the application:
  npm run server
  1. To do the tests:
  npm test

event-management's People

Contributors

sulukarpuz avatar kal-el131313131 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.