https://github.com/adityasinghvats/fastapi-courses-backend
A backend project using Fast Api , MongoDB , Docker , Postman.
https://github.com/adityasinghvats/fastapi-courses-backend
backend-api crud-application docker dockerfile fastapi mongodb python3 uvicorn
Last synced: about 1 month ago
JSON representation
A backend project using Fast Api , MongoDB , Docker , Postman.
- Host: GitHub
- URL: https://github.com/adityasinghvats/fastapi-courses-backend
- Owner: Adityasinghvats
- Created: 2024-08-27T12:32:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-25T14:57:46.000Z (about 1 year ago)
- Last Synced: 2025-03-03T13:14:53.674Z (11 months ago)
- Topics: backend-api, crud-application, docker, dockerfile, fastapi, mongodb, python3, uvicorn
- Language: Python
- Homepage:
- Size: 10 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastApi-Backend
## To setup the project locally on your machine
1. Get started in a code editor (Preferably Pycharm)
```sh
git clone https://github.com/Adityasinghvats/FastApi-Backend.git
```
2. Need to setup MongoDB on local system.
3. In the root directory open integrated terminal and run the command
```sh
pip install -r requirements.txt
```
4. Run to parse the data to MongoDB.
```sh
script.py
```
5. Now run the project locally
```sh
cd app
uvicorn main:app --reload
```
6. To get api docs in Swagger format
- Open the url provided by uvicron in terminal directly
```sh
http://127.0.0.1:8000/docs
http://127.0.0.1:8000/redoc
```
7. Install Docker Desktop , then run the following command in root directory
```sh
docker build -t my_python_app .
docker run -d --name fast_api -p 80:80 my_python_app
```
8. Demo
