EventHub web application is an application where user can find fascinating events from around the world and be able to paticipate in the event! Moreover, user can create their own event and post it in the main dashboard.
- NodeJS
- Express
- MongoDB
- Mongoose
- Heroku server
const eventSchema = {
eventId: Number,
eventName: String,
amount: Number,
owner: String,
categories: String,
paticipant: [String]
};
Deployed node JS application => https://sheltered-tundra-26707.herokuapp.com
- Get all events
GET : https://sheltered-tundra-26707.herokuapp.com/events
- Add a event
POST : https://sheltered-tundra-26707.herokuapp.com/events
body : x-www-form-urlencoded
const newEvent = Event({
eventId: <Number>,
eventName: <String>,
amount: <Number>,
owner: <String>,
categories: <String>,
paticipant: <[String]>
});
- Get a specific event
GET : https://sheltered-tundra-26707.herokuapp.com/events/:eventId
- Modify a specific event
PATCH : https://sheltered-tundra-26707.herokuapp.com/events/:eventId
- Delete a specific event
DELETE : https://sheltered-tundra-26707.herokuapp.com/events/:eventId
- Get all events in a specific category
GET : https://sheltered-tundra-26707.herokuapp.com/category/:categoryName
- Get all events that created by a specific user
GET : https://sheltered-tundra-26707.herokuapp.com/ownedEvent/:userEmail
- Get all events that paticipated by a specific user
GET : https://sheltered-tundra-26707.herokuapp.com/paticipatedEvent/:userEmail
- Join an event
PATCH : https://sheltered-tundra-26707.herokuapp.com/events/:eventId/join/:userMail
- Cancel an event
PATCH : https://sheltered-tundra-26707.herokuapp.com/events/:eventId/cancel/:userMail