You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# π BusEase β Bus Ticket Booking and Management System
BusEase is a full-stack bus ticket booking and management system designed to streamline the process of booking seats, managing bus data, handling user feedback, and supporting admin control functionalities. The backend is built with Node.js and integrates with PostgreSQL for database operations.
---
## βοΈ Features
- π Search and view available buses
- π§Ύ Book bus tickets
- π€ User authentication (login, signup)
- π£οΈ Submit feedback
- π§ Admin controls (add/edit/delete buses, view bookings)
- π JWT-based route protection
---
## π§° Tech Stack
- **Backend**: Node.js (Express)
- **Database**: PostgreSQL
- **Middleware**: Custom auth middleware
- **Package Manager**: npm
---
## π§ Setup Instructions
### 1. Clone the repository
```bash
git clone https://github.com/Vasanth-Loganathan/BusEase.git
cd BusEase/Backend
### 2. Install dependencies
```bash
npm install
### 3.Configure environment variables
```bash
PORT=5000
DB_HOST=localhost
DB_USER=your_db_user
DB_PASSWORD=your_db_password
DB_NAME=your_database_name
DB_PORT=5432
JWT_SECRET=your_jwt_secret
### 4. Set up the PostgreSQL database
Create a PostgreSQL database (e.g., busease_db) using your DB tool (pgAdmin, CLI, etc.)
Tables will be created automatically by your application logic or SQL schema.
### 5. Run the backend server
```bash
node server.js
The server will start at: http://localhost:5000
# BusEase