- This project is designed to manage D0010 files that have meter reading data.The project contains a model that has meters and readings.It also includes a management command and an admin interface for managing data
Built with:
Python version 3
Django
- Clone the project using git clone from Github:
https://github.com/Marlinekhavele/energy_code_challenge
- Enter the project directory i.e
cd app
- create virtual environment
virtualenv env -p python3.11 - use your local python
*Activate the virtual env with the below command
source env/bin/activate
pip install -r requirements.txt
python manage.py createsuperuser
- username: octopusenergy
- password: 12345
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
python manage.py test
some environment variables you will use inside your .env
file just copy this.
DB_USER=postgres
DB_HOST=localhost
DB_NAME=octopus_energy_app
DB_PASSWORD=password
-
REST API: Implement a RESTful API to allow users to upload D0010 files via the web interface.
-
Data Validation: Add data validation checks to ensure that imported D0010 files meet the expected format and standards.
-
Error Handling: Implement error handling.
-
Testing: write tests for models.
-
System design: see how the app will grow to handle traffic.
-
Collaboration: include other engineers on how to improve the project.