Member-only story
Contents
1. Project Setup: The foundation
Important is that I set up the framework for the project before building the back-front. Good projects need good bones.
Creating ProJ Directory, I ran
mkdir fleet_monitoring
cd fleet_monitoring
Create a Virtual Environment
Every Django project needs its own bubble, so it doesn’t share cookies (a.k.a. dependencies) with others.
python3 -m venv venv
source venv/bin/activate # For Linux/Mac
venv\Scripts\activate # For Windows
Install Required Libraries: Django for the backend, REST framework for APIs, PostgreSQL for the database, and Matplotlib for charting (you’ll thank us later).
pip install django djangorestframework psycopg2-binary matplotlib