AtomHabitTracker is an application for tracking and managing habits and tasks. This web application allows users to create, edit, and track their habits, as well as interact with a Telegram bot for habit management.
Make sure you have Docker and Docker Compose installed on your machine.
-
Clone the repository: https://github.com/rusanov8/AtomHabitsTracker.git
-
Navigate to the project directory:
cd AtomHabitsTracker
- Build and run the Docker containers:
docker-compose up --build
- Access AtomHabitTracker in your web browser at http://localhost:8000/.
Before using AtomHabitTracker, make sure you have Python 3.6+ and virtualenv installed. Follow these steps:
-
Clone the repository: https://github.com/rusanov8/AtomHabitsTracker.git
-
Navigate to the project directory:
cd AtomHabitsTracker
- Create a virtual environment:
virtualenv venv
- Activate the virtual environment:
-
For Windows:
venv\Scripts\activate -
For macOS and Linux:
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Apply migrations:
python manage.py migrate
- Start the application:
python manage.py runserver
- You can now open AtomHabitTracker in your web browser at
http://127.0.0.1:8000/.
To run the AtomHabitTracker Telegram bot used for habit management, follow these steps:
- With the virtual environment activated, run the following command: python telegram_bot.py
- The bot will be available in Telegram as
@atom_habit_bot. Start a chat with the bot and execute the/startcommand. The bot will save yourchat_idin the database and begin sending notifications.
- Django: The web framework used for the web portion of the application.
- Django REST framework: A library for creating RESTful APIs in Django.
- python-telegram-bot: A library for creating Telegram bots.
- [Rusanov Egor]