Gas World is a comprehensive management application designed to help gas station owners and managers oversee and monitor their stations effectively. The app facilitates the management of sales, stock, pump activities, and shift assignments. It also assists attendants in managing their shifts and tracking their sales.
- Station Management: Manage sales, stock, and pump activities.
- Shift Management: Assign shifts to attendants and monitor their performance.
- Sales Tracking: Keep track of sales for each shift.
- Stock Monitoring: Monitor stock levels and ensure timely refills.
- Backend: Django
- Frontend: React
- Caching: Redis
- Python (>=3.8)
- Node.js (>=14.x)
- Redis
-
Clone the repository:
git clone https://www.github.com/Nazzcodek/gas-world cd gas-world
-
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
- On macOS and Linux:
source .venv/bin/activate
- On Windows:
.venv\Scripts\activate
- On macOS and Linux:
-
Install the dependencies:
pip install -r requirements.txt
-
Set up Redis:
- Make sure Redis is installed and running on your machine. You can download it from Redis.io.
-
Apply database migrations:
python manage.py makemigrations python manage.py migrate
-
Navigate to the frontend directory:
cd frontend
-
Install the frontend dependencies:
npm install
-
Activate the virtual environment (if not already activated):
- On macOS and Linux:
source .venv/bin/activate
- On Windows:
.venv\Scripts\activate
- On macOS and Linux:
-
Run the development server:
python manage.py runserver
-
Navigate to the frontend directory:
cd frontend
-
Run the frontend development server:
npm start
-
Open your browser and visit:
http://localhost:3000
- Login: Station Owners, managers and attendants can log in to access their respective dashboards.
- Dashboard: Owners can view stations, Managers, pit, pump and sales activities. Managers can view overall sales, stock levels, and assign shifts to attendants.
- Shift Management: Managers can assign and oversee shifts, while attendants can view their shift details and manage their sales.
- Sales Tracking: Both managers and attendants can keep track of sales data in real-time.
- Stock Monitoring: Monitor fuel levels and get notifications for low stock.
We welcome contributions to Gas World! If you have suggestions, bug reports, or code contributions, please create a pull request or open an issue on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy managing with Gas World! If you have any questions or need further assistance, feel free to contact us.