The final project for my degree, that is a dashboard to help visualize data.
You must have installed a Python version bigger than 3.9. For this project, the development was done under 3.12
You must have Node 22 installed on your machine
You must have a Docker runtime installed, you can either install Docker Desktop, Podman or Rancher and configure it to use the Docker CLI.
-
Setup a
.env.devon theinfrafolder Copy the contents ofinfra/.env.exampleand save the changes as a new file. Use the name.env.dev -
Start the development environment This will ensure that you get the correct dependencies installed and also a Postgres DB ready to go.
docker-compose up --build-
Visit http://localhost:8000/ in your browser
-
Build assets if changing JS or CSS Assets are built separately
cd backend
node build.jsfinal_project/
├── dashboard/ # Main Django project directory
├── docs/ # Project documentation
│ ├── DESCRIPTION.MD # Project description
│ ├── USE_CASES_UML.md # Use cases and UML diagrams
│ └── SCENARIOS.md # Project scenarios
├── venv/ # Python virtual environment
├── activate.sh # Virtual environment setup script
└── .gitignore # Git ignore rules
If you prefer to run commands manually:
- Create and activate virtual environment:
python3 -m venv venv
source venv/Scripts/activate # On Windows with Git Bash- Install dependencies:
pip3 install -r requirements.txt- Run migrations:
cd backend
python3 manage.py migrate- Start the development server:
python3 manage.py runserver-
If scripts are not executable:
- Run
chmod +x *.shto make scripts executable
- Run
-
If Django is not found:
- Make sure your virtual environment is activated
- Run
pip3 install -r requirements.txt
-
If migrations fail:
- Run
python3 manage.py makemigrations - Then
python3 manage.py migrate
- Run
-
If templates aren't found:
- Check that your app is in
INSTALLED_APPS - Verify template directory structure
- Ensure template names in views match actual files
- Check that your app is in
