Skip to content

Abdrajr/FitnessTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

################################################

Install Dependencies: Make sure to have the necessary Python packages

installed in your environment. If not already installed, you can use the following command:

bash

pip install fastapi pydantic psycopg2 sqlalchemy uvicorn

################################################

Set Up PostgreSQL: Ensure you have PostgreSQL running, and configure your database (in this case, fitness_tracker) with the appropriate user credentials.

Run the Application: You can start the FastAPI application using Uvicorn. Use the following command in your terminal:

bash

uvicorn main:app --reload

################################################

Replace main with the name of the Python file where your FastAPI app is defined, and make sure you are in the same directory as this file.

Access the API: After running the application, the API can be accessed at:

http://127.0.0.1:8000

################################################

Additionally, the interactive API docs are available at:

arduino

http://127.0.0.1:8000/docs

About

FitnessTracker(Beginner)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published