he Habit Reminder API is a Django REST Framework-based backend for managing personal habits. It allows users to create, track, and share habits with customizable settings like periodicity, duration, and rewards. The API supports authentication, ensuring users can manage their habits securely while also accessing public habits shared by others
git clone git@github.com:RomanPecheritsa/HabitReminder.git
cd HabitReminder
Open.env and replace the values of the variables with your own
cp .env.example .env
Execute the following command to build the Docker images:
docker-compose build
Start the application and its dependencies using:
docker-compose up
The server will be available at http://127.0.0.1:8000
Run the tests with coverage: This command runs the Django tests and collects coverage data:
docker exec -it django coverage run --source='.' manage.py test
docker exec -it django coverage report
To stop the running containers, use:
docker-compose down
If necessary, remove unused containers and images to free up space
docker system prune -a
The full API documentation is available at: http://127.0.0.1:8000/swagger/