This repository contains the Admin Dashboard for a public bus transportation system. The system provides functionalities for different types of users: customers, drivers, and administrators. Each user type has unique features and access levels, designed to streamline bus transportation management and operations.
π Stars | π΄ Forks | π Issues | π Open PRs | π Close PRs |
Customer
- View Bus Schedules: See bus times and stoppages for convenient travel planning.
- Book Tickets: Reserve seats on buses for specific routes and times.
Driver
- Daily Allotment: View the allotted bus number and route for the day.
- Route Information: Access detailed information about the assigned route and bus stops.
Admin
- Bus Allotment: Assign buses to drivers for each day.
- Driver Management:
- Reassign buses if a driver is absent.
- Add new drivers and delete old drivers.
- Reassign buses if a driver is absent.
- Bus Location Tracking: Monitor the real-time location of buses on their routes.
- Dashboard Analytics:
- View monthly transaction reports.
- Track the number of passengers traveling each day.
Real-time Data:
WebSockets or similar technology for real-time bus tracking
To set up the project locally, follow these steps:
Prerequisites
- Node.js: Ensure you have Node.js installed.
- MongoDB: A running instance of MongoDB.
- Clone the repository:
git clone https://github.com/Ramsey99/Admin_Dashboard.git
cd Admin_Dashboard
- Install dependencies:
npm install
- Configure environment variables:
Create a .env file in the root directory.
- Add your MongoDB connection string and other environment variables:
MONGODB_URI=your_mongodb_uri
PORT=your_preferred_port
- Run the application:
npm start
- Access the dashboard:
Open your web browser and go to http://localhost:your_preferred_port.
- Contributions are welcome! If you have any suggestions or improvements, please open an issue or create a pull request.
-
Fork the Project:
- Click on the "Fork" button at the top right corner of the repository's page on GitHub to create your own copy of the project.
-
Clone Your Forked Repository:
- Clone the forked repository to your local machine using the following command:
git clone https://github.com/Ramsey99/Admin_Dashboard
-
Create a New Branch and Move to the Branch:
- Create a new branch for your changes and move to that branch using the following commands:
git checkout -b <branch-name>
-
Add Your Changes:
- After you have made your changes, check the status of the changed files using the following command:
git status -s
- Add all the files to the staging area using the following command:
git add .
- or add specific files using:
git add <file_name1> <file_name2>
-
Commit Your Changes:
- Commit your changes with a descriptive message using the following command:
git commit -m "<EXPLAIN-YOUR_CHANGES>"
-
Push Your Changes:
- Push your changes to your forked repository on GitHub using the following command:
git push origin <branch-name>
-
Open a Pull Request:
- Go to the GitHub page of your forked repository, and you should see an option to create a pull request. Click on it, provide a descriptive title and description for your pull request, and then submit it.
- We extend our heartfelt gratitude for your invaluable contribution to our project! Your efforts play a pivotal role in elevating Ratna-Supermarket to greater heights.
- Make sure you show some love by giving β to our repository.
For any questions or inquiries, you can reach me at: [email protected]