-
Get started in a code editor (Preferably Pycharm)
git clone https://github.com/Adityasinghvats/FastApi-Backend.git
-
Need to setup MongoDB on local system.
-
In the root directory
- Open integrated terminal and run the command
pip install -r requirements.txt
-
Run
script.py
to parse the data to MongoDB. -
Now run the project locally
cd app
uvicorn main:app --reload
-
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
-
-
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
-
Notifications
You must be signed in to change notification settings - Fork 0
Adityasinghvats/FastApi-Backend
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A backend project using Fast Api , MongoDB , Docker , Postman.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published