https://github.com/dori-dev/fastapi-sample
Create sample api using FastApi.
https://github.com/dori-dev/fastapi-sample
fastapi python rest-api sample
Last synced: 12 months ago
JSON representation
Create sample api using FastApi.
- Host: GitHub
- URL: https://github.com/dori-dev/fastapi-sample
- Owner: dori-dev
- License: mit
- Created: 2022-07-16T17:08:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-03T15:59:49.000Z (almost 3 years ago)
- Last Synced: 2025-03-30T13:37:15.490Z (about 1 year ago)
- Topics: fastapi, python, rest-api, sample
- Language: Python
- Homepage: https://dori-fastapi-sample.herokuapp.com
- Size: 14.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastApi Sample
Create sample api using FastApi.
#
# How to Use
## Download Source
```
git clone https://github.com/dori-dev/fastapi-sample.git
```
```
cd fastapi-sample
```
## Build Virtual Environment
```
python3 -m venv env
```
```
source env/bin/activate
```
## Install Project Requirements
```
pip install -r requirements.txt
```
## Run Server
```
uvicorn main:app --reload
```
```
alembic revision --autogenerate -m "create user model
alembic upgrade head
```
## Open On Browser
Api Docs
[127.0.0.1:8000/docs](http://127.0.0.1:8000/docs)
#
## Links
Download Source Code: [Click Here](https://github.com/dori-dev/fastapi-sample/archive/refs/heads/master.zip)
My Github Account: [Click Here](https://github.com/dori-dev/)