BusBuddy is a Spring Boot application designed to manage and facilitate bus transit services.
- User authentication and authorization
- Bus route management
- Scheduling and real-time tracking
- Booking and ticketing system
- Admin dashboard for managing routes and schedules
Endpoint | Method | Description | Access |
---|---|---|---|
/admin/signup |
POST | Register as admin | Public |
/user/signup |
POST | User sign up | Public |
Endpoint | Method | Description | Access |
---|---|---|---|
/admin/login |
POST | Register as admin | Admin |
/admin/logout |
POST | Register as admin | Admin |
Endpoint | Method | Description | Access |
---|---|---|---|
/admin/bus |
POST | Add new bus | Admin |
/admin/logout |
POST | Admin logout | Public |
Endpoint | Method | Description | Access |
---|---|---|---|
/bus/admin |
POST | Add new bus | Admin |
/bus/admin |
PUT | Update bus details | Admin |
/bus/admin/{busId} |
DELETE | Delete bus | Admin |
/bus/all |
GET | Get all buses | Public |
/bus/all/{busId} |
GET | Get bus details by ID | Public |
/bus/type/{busType} |
GET | Get buses by type | Public |
Endpoint | Method | Description | Access |
---|---|---|---|
/user/reservation |
POST | Add reservation | Authenticated |
/user/reservation |
DELETE | Cancel reservation | Authenticated |
Endpoint | Method | Description | Access |
---|---|---|---|
/route/admin |
POST | Add new route | Admin |
/route/all |
GET | Get all routes from source to destination | Public |
Endpoint | Method | Description | Access |
---|---|---|---|
/user/login |
POST | User login | Public |
/user/logout |
GET | User logout | Authenticated |
BusBuddy/
├── .mvn/
│ └── wrapper/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── busbuddy/
│ │ └── resources/
│ └── test/
│ ├── java/
│ └── resources/
├── .gitignore
├── mvnw
├── mvnw.cmd
├── pom.xml
└── README.md
Java 17 or higher
Clone the repository:
git clone https://github.com/dee-coder01/BusBuddy.git
cd BusBuddy
mvn clean install
Run the Spring Boot application:
mvn spring-boot:run
http://localhost:8080
- Fork the repository
- Create a new branch
git checkout -b feature-name
- Commit your changes
git commit -m "Add some feature"
- Push to the branch
git push origin feature-name
- Create a new Pull Request