The Ticketing System is a full-stack web application designed to streamline corporate issue tracking. Users can create, view, and manage tickets, while administrators can assign statuses and track analytics. The system features authentication, role-based access, and an intuitive UI.
git clone https://github.com/yourusername/ticketing-system.git
cd ticketing-system
cd backend
npm install
** Backend**
cd backend
npm install
** Frontend**
cd frontend
npm install
Create a .env file in the backend directory and add:
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
PORT=5000
** Backend**
cd backend
nodemon server.js
** Frontend**
cd frontend
npm run dev
Method | Endpoint | Description |
---|---|---|
POST | /api/auth/signup | Register a new user |
POST | /api/auth/login | Login user & get token |
Method | Endpoint | Description |
---|---|---|
GET | /api/tickets | Get all tickets (Admin) |
GET | /api/tickets/user | Get user's tickets |
POST | /api/tickets | Create a new ticket (User) |
PUT | /api/tickets/:id | Update ticket status (Admin) |
DELETE | /api/tickets/:id | Delete a ticket (User) |
User Dashboard | Admin Dashboard |
---|---|
Contributions are welcome! Please follow these steps:
feature-name
).git commit -m "Add new feature"
).This project is MIT Licensed. See the LICENSE
file for more details.
Made with ❤️ by Esamel Sabir