Skip to content

A backend project using Fast Api , MongoDB , Docker , Postman.

Notifications You must be signed in to change notification settings

Adityasinghvats/FastApi-Courses-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastApi-Backend

To setup the project locally on your machine

  1. Get started in a code editor (Preferably Pycharm)
git clone https://github.com/Adityasinghvats/FastApi-Backend.git
  1. Need to setup MongoDB on local system.

  2. In the root directory open integrated terminal and run the command

pip install -r requirements.txt
  1. Run to parse the data to MongoDB.
script.py
  1. Now run the project locally

    cd app
    uvicorn main:app --reload
  2. To get api docs in Swagger format

    • Open the url provided by uvicron in terminal directly

      http://127.0.0.1:8000/docs
      http://127.0.0.1:8000/redoc
  3. Install Docker Desktop , then run the following command in root directory

    docker build -t my_python_app .
    docker run -d --name fast_api -p 80:80 my_python_app
  4. Demo

Screenshot 2024-08-27 182929

Releases

No releases published

Packages

No packages published