Skip to content

About

A full-stack campus event management app with role-based authentication, student/club/admin dashboards, React + Vite frontend, and Express + MongoDB backend.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

EventManagementSystem

EventManagementSystem is a campus event management application with role-based authentication and dashboards for students, club organizers, and admins.

What this project includes

  • Backend: Node.js, Express, MongoDB, JWT authentication, and role-aware signup support
  • Frontend: React, Vite, Axios, Tailwind CSS, and reusable notification alerts
  • Auth flows for signup and login with JWT token storage
  • Role-based dashboard redirect after login

Features

  • Student, Club, and Admin accounts
  • Secure password hashing with bcrypt
  • JWT token generation for authentication
  • Club signup and admin code validation
  • Form validation, user-friendly alerts, and role-aware redirects

Tech stack

  • Backend: Node.js, Express, MongoDB, Mongoose, dotenv, cors
  • Frontend: React, Vite, React Router, Axios, Tailwind CSS

Setup

Backend

  1. Open a terminal and navigate to the backend folder:
cd backend
  1. Install dependencies:
npm install
  1. Copy the example environment file and update it:
copy .env.example .env
  1. Edit .env and set the values for:
  • MONGO_URI
  • JWT_SECRET
  • ADMIN_CODE
  • FRONTEND_URL
  1. Start the backend server:
npm run dev

Frontend

  1. Open a separate terminal and navigate to the frontend folder:
cd frontend
  1. Install dependencies:
npm install
  1. (Optional) Create a .env file for a custom API URL:
VITE_API_URL=http://localhost:5000
  1. Start the frontend server:
npm run dev

Available scripts

Backend

  • npm run dev — start the backend with nodemon
  • npm start — start the backend with Node

Frontend

  • npm run dev — start the Vite development server
  • npm run build — build the frontend for production
  • npm run lint — run ESLint checks
  • npm run preview — preview the built app

API endpoints

  • POST /api/auth/signup — create a new user account
  • POST /api/auth/login — authenticate an existing user

Notes

  • The backend now runs as an ES module using type: "module".
  • The frontend uses import.meta.env.VITE_API_URL for API endpoint configuration.
  • Use the role selector on signup to create student, club, or admin accounts.

About

A full-stack campus event management app with role-based authentication, student/club/admin dashboards, React + Vite frontend, and Express + MongoDB backend.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages