Skip to content

arceuzvx/EnTrack

Repository files navigation

EnTrack

An energy tracking web application that helps users monitor and reduce their energy consumption through task management and energy-saving tips.

Features

  • 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

Technologies Used

  • Django 4.2.7
  • Tailwind CSS
  • jQuery (for AJAX functionality)
  • Python-dotenv (for environment variables)

Prerequisites

  • Python 3.11 or higher
  • pip (Python package manager)
  • Git

Installation

  1. Clone the repository:
git clone https://github.com/arceuzvx/EnTrack.git
cd EnTrack
  1. Create a virtual environment and activate it:
python -m venv venv

# On Windows
venv\Scripts\activate

# On macOS/Linux
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables: Create a .env file in the project root with the following variables:
DEBUG=True
SECRET_KEY=django-insecure-placeholder-key-for-development
  1. Run migrations to set up the database:
python manage.py makemigrations
python manage.py migrate
  1. Create a superuser (admin account):
python manage.py createsuperuser
  1. Run the development server:
python manage.py runserver
  1. Access the application:

Usage

  1. Register a new account or log in with existing credentials
  2. Navigate to the dashboard to:
    • View and manage your tasks
    • See daily energy-saving tips
    • Track your progress
  3. 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
  4. All task operations are performed in real-time using AJAX

Troubleshooting

  • 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 .env file
  • Check that you're using a compatible Python version
  • Ensure all dependencies are installed correctly

About

An energy tracking web application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5