The application is deployed on Vercel: https://api-calories-drf.vercel.app
This repository is a Calorie Tracker Web Application built using Django Rest Framework and SQLite3 database.The application allows users to enters their meals and thereby manage their calorie intake. The application also allows managers to keep track of their users
It was developed as a part of the Backend Internship Task for DiveHQ for the Github Octernship program.
- Sign up/ Sign in to the Web Application
- Mantain Calorie intake
- Set Goals
- Managers can access their users meals
- Get Calorie intakes for meals without knowing it
- Create, Update , See and Delete meal entries
-
Clone the repository to your local machine:
$ git clone <repository-url>
-
Navigate to the project directory and change into the backend directory:
$ cd <directory>
-
Create and activate a virtual environment (optional but recommended):
$ poetry install
-
Install the required dependencies and setup database:
$ poetry run ./build.sh
-
Startup the server:
$ poetry run ./manage.py runserver
-
(Optional) Create a superuser to access the admin interface:
$ poetry run ./manage.py createsuperuser
-
Open web browser and visit http://localhost:8000/ to access the project.
-
Go to visit http://localhost:8000/user/register to create an account. Only authenticated Users can access the web app
-
Use http://localhost:8000/tracker/ to create and view entries.
- Run the following command to start the API server:
The API server will start, and you can access it at http://localhost:8000/ in your web browser. Make sure to replace 8000 with the appropriate port number if you have configured a different port for your Django project.
$ python manage.py runserver 8000