An energy tracking web application that helps users monitor and reduce their energy consumption through task management and energy-saving tips.
- User authentication and profile management
- Task management system with AJAX functionality
- Add, toggle, and delete tasks
- Real-time updates without page refresh
- Daily energy-saving tips
- Modern, responsive UI with Tailwind CSS
- More features coming soon:
- Track electricity and gas usage
- Calculate energy savings
- View historical energy consumption data
- Compete on a leaderboard with other users
- Django 4.2.7
- Tailwind CSS
- jQuery (for AJAX functionality)
- Python-dotenv (for environment variables)
- Python 3.11 or higher
- pip (Python package manager)
- Git
- Clone the repository:
git clone https://github.com/arceuzvx/EnTrack.git
cd EnTrack- Create a virtual environment and activate it:
python -m venv venv
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
Create a
.envfile in the project root with the following variables:
DEBUG=True
SECRET_KEY=django-insecure-placeholder-key-for-development
- Run migrations to set up the database:
python manage.py makemigrations
python manage.py migrate- Create a superuser (admin account):
python manage.py createsuperuser- Run the development server:
python manage.py runserver- Access the application:
- Main application: http://127.0.0.1:8000/
- Admin interface: http://127.0.0.1:8000/admin/
- Register a new account or log in with existing credentials
- Navigate to the dashboard to:
- View and manage your tasks
- See daily energy-saving tips
- Track your progress
- Use the task management system to:
- Add new tasks by typing in the task input field
- Mark tasks as complete by clicking the circle icon
- Delete tasks using the trash icon
- All task operations are performed in real-time using AJAX
- If you encounter any issues with the database, try:
python manage.py makemigrations dashboard python manage.py migrate
- Make sure all required environment variables are set in your
.envfile - Check that you're using a compatible Python version
- Ensure all dependencies are installed correctly