This is a Python Flask web application for managing car sharing services.
- Car management
- Route planning
- Station management
- Ride ordering system
- MQTT integration
- MongoDB database
- Flask
- PyMongo
- Paho-MQTT
- Flask-CORS
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables in
.env
file:
DB_CONNECTION=mongodb://localhost:27017
MQTT_HOST=localhost
MQTT_PORT=1883
- Run the application:
python main.py
The application will be available at http://localhost:5000
/api/cars
- Car management/api/ride-orders
- Ride order management/api/routes
- Route management/api/stations
- Station management/api/start
- Start service/api/stop
- Stop service/api/status
- Service status