SpeedLink Logo

SpeedLink Flask Application

SpeedLink is a Flask-based web application that manages shipments, shippers, deliveries, and related functionalities.

Description

This application provides functionalities for managing shipments, shippers, deliveries, and more. It uses Flask as the web framework and SQLAlchemy for database interaction. Users with different roles, such as admins, shippers, and deliveries, can log in and perform various actions related to shipments and accounts.

Features

  • Authentication: Users can log in using their credentials, and their roles determine their access rights.

  • Admin Dashboard: Admins can view and manage shipments, shippers, and deliveries.

  • Shipper Dashboard: Shippers can manage their own shipments, track status, and more.

  • Delivery Dashboard: Deliveries have a dedicated dashboard for their tasks.

  • Adding Shipments: Shippers can add new shipments, providing recipient details, pricing, and more.

  • Barcode Handling: The application includes barcode extraction and decoding functionalities.

  • Price Management: Shipping prices for various cities can be configured and managed.

Setup Instructions

  1. Clone the repository to your local machine:
<<<<<<< HEAD
git clone https://github.com/your-username/speedlink-flask-app.git
=======
git clone https://github.com/Cat9199/SpeedLinkSys.git
>>>>>>> origin/main
  1. Navigate to the project directory:
<<<<<<< HEAD
cd speedlink-flask-app
=======
cd SpeedLinkSys
>>>>>>> origin/main
  1. Install the required dependencies using pip:
pip install -r requirements.txt
  1. Configure the application:
  • Update the app.config['SQLALCHEMY_DATABASE_URI'] with your database URI in the app.py file.
  • Modify other configuration settings if needed.
  1. Run the application:
python app.py
  1. Access the application in your web browser at http://localhost:2000.

Routes

Index

SpeedLink Logo

  • URL: /
  • Description: Home page of the application.

Setting

SpeedLink Logo

  • URL: /setting
  • Description: Displays user settings.

Login

SpeedLink Logo

  • URL: /login
  • Description: Handles user login.

Dashboard

SpeedLink Logo

  • URL: /dashboard
  • Description: Displays the dashboard.

Users

SpeedLink Logo

  • URL: /users
  • Description: Displays a list of users.

Print Form

SpeedLink Logo

  • URL: /print
  • Description: Displays a print form.

Print (POST)

SpeedLink Logo

  • URL: /pud
  • Description: Handles a POST request to print shipments.

Mark as Printed

SpeedLink Logo

  • URL: /asprint/<username>
  • Description: Marks shipments as printed.

Track Shipment

SpeedLink Logo

  • URL: /track/<barcode>
  • Description: Tracks a shipment by barcode.

Logout

SpeedLink Logo

  • URL: /logout
  • Description: Logs the user out.

Deliveries

SpeedLink Logo

  • URL: /deliv
  • Description: Displays delivery information.

Delete Shipment

SpeedLink Logo

  • URL: /del/<id>
  • Description: Deletes a shipment.

Print Shipment (POST)

SpeedLink Logo

  • URL: /pa
  • Description: Handles a POST request to print shipments.

Stop Shipping

SpeedLink Logo

  • URL: /stopshipping/<id>
  • Description: Stops shipping for a shipment.

Stop

SpeedLink Logo

  • URL: /stop
  • Description: Stops shipments for the delivery.

Mark as Read Notification

SpeedLink Logo

  • URL: /makeasreed/<id>
  • Description: Marks a notification as read.

Add Shipper

SpeedLink Logo

  • URL: /adds
  • Description: Displays a form to add a shipper account.

Add Delivery

SpeedLink Logo

  • URL: /addd
  • Description: Displays a form to add a delivery account.

Add Shipment

SpeedLink Logo

  • URL: /addushipment
  • Description: Displays a form to add a new shipment.

Add File

SpeedLink Logo

  • URL: /addfile
  • Description: Displays a form to add a file.

Send to Delivery

SpeedLink Logo

  • URL: /sendtodelivery
  • Description: Sends shipments to delivery.

Set Shipment

SpeedLink Logo

  • URL: /setship
  • Description: Sets the delivery for a shipment.

View Shipments

SpeedLink Logo

  • URL: /viweshipping
  • Description: Displays all shipments.

View Wallets

SpeedLink Logo

  • URL: /viwewallets
  • Description: Displays all wallets.

Notifications

SpeedLink Logo

  • URL: /notifications
  • Description: Displays notifications.

Extract Barcode

SpeedLink Logo

  • URL: /extract_barcode
  • Description: Extracts barcode data from an image.

Change Shipment Status

SpeedLink Logo

  • URL: /changstates/<barcode>
  • Description: Changes the shipment status.

Profile

SpeedLink Logo

  • URL: /profile
  • Description: Displays user profile.

View Wallets by Code

SpeedLink Logo

  • URL: /viwewallets/<wallet_code>
  • Description: Displays wallets by wallet code.

Update Profile

SpeedLink Logo

  • URL: /update_profile/<admin_id>
  • Description: Updates the admin profile.

Delivery Price

SpeedLink Logo

  • URL: /dprice/<sid>
  • Description: Displays delivery prices.

Save Price

SpeedLink Logo

  • URL: /saveprice/<sid>
  • Description: Saves delivery prices.

Tables

SpeedLink Logo

  • URL: /tables/<id>
  • Description: Displays shipment tables grouped by delivery date.

Download Database

  • URL: /download_database
  • Description: Allows users to download the database file.

Contributing

Contributions are welcome! If you find any issues or want to enhance the application, feel free to submit a pull request.

License

<<<<<<< HEAD This project is licensed under the MIT License - see the LICENSE file for details.

This project is licensed under the MIT License - see the LICENSE file for details.

origin/main