Skip to content

A simple Event Management System built with Node.js, Express, MySQL, and EJS. It allows admins to create, update, and delete events, while users can view upcoming and past events. Includes session-based authentication, dynamic status updates, and a clean UI for managing event

Notifications You must be signed in to change notification settings

Mubeen-Channa/Event-Management-Web-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗓️ Event Management System

A full-featured web application for managing and displaying upcoming and past events. Built using Node.js, Express, EJS, MySQL, & Bootstrap.


✨ Features

  • 🔐 Admin login system (session-based)
  • 📅 Add, edit, delete upcoming events
  • 📜 View past events automatically (auto-update logic included)
  • 🔎 Public pages to view upcoming and past events
  • 📂 Admin dashboard with sidebar navigation
  • 🧠 Auto-update logic: Moves events to "past" based on date and time

🚀 Technologies Used

  • Backend: Node.js, Express.js
  • Frontend: HTML, CSS (Bootstrap), EJS
  • Database: MySQL
  • Session Management: express-session

🔑 Admin Routes Protection

All admin routes are protected using a requireAdmin middleware:

function requireAdmin(req, res, next) {
  if (!req.session || req.session.role !== "admin") {
    return res.send("Access Denied! Session not initialized.");
  }
  next();
}

🧪 How to Run

  1. Clone the repository:
git clone https://github.com/Mubeen-Channa/Event-Management-Web-App

cd your-repo-name 
  1. Install dependencies:
npm install
  1. Configure .env or DB connection in db.js.

  2. Run the server:

node server.js
  1. Open in browser:
http://localhost:3000

Let me know if you'd like to add deployment steps (e.g., for Vercel, Render, or cPanel) or database schema instructions!

About

A simple Event Management System built with Node.js, Express, MySQL, and EJS. It allows admins to create, update, and delete events, while users can view upcoming and past events. Includes session-based authentication, dynamic status updates, and a clean UI for managing event

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published