This is a logistics management system built with Flask, SQLAlchemy, and Flask-Login. The application allows users to register, log in, and manage bookings. An admin interface is also provided for dispatch management.
- Features
- Requirements
- Installation
- Database Setup
- Running the Application
- Usage
- Email Notifications
- Admin Interface
- Contributing
- User registration and login with email confirmation
- Password hashing for security
- Booking management
- Admin interface for managing dispatches
- Email notifications for registration and booking confirmations
Ensure you have Python installed. The required packages are specified in requirements.txt
.
-
Clone the repository:
git clone https://github.com/YashasJKumar/Logistics-Management.git cd Logistics-Management
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Set up environment variables for email credentials:
export EMAIL='your-email@gmail.com' export PASSWORD='your-email-password'
- Initialize the database:
flask shell from your_application import db db.create_all() exit()
-
Run the Flask application:
flask run
-
Access the application in your browser:
http://127.0.0.1:5000
Users can register by providing their email, password, name, city, and contact number.
Users can log in using their email and password.
After logging in, users can make a booking by providing the necessary details such as source, destination, product, and delivery deadline.
Admin can log in using specific credentials to access the dispatch management interface.
Email notifications are sent to users for:
- Successful registration
- Booking confirmation
The admin can manage dispatches and view booking details. The admin interface includes:
- Viewing all bookings
- Dispatch management
Feel free to fork the repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.