Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 9 days 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 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T14:24:14.000Z (over 2 years ago)
- Last Synced: 2023-03-05T17:29:19.376Z (over 1 year ago)
- Topics: fastapi, python, rest-api, sample
- Language: Python
- Homepage: https://dori-fastapi-sample.herokuapp.com
- Size: 6.84 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/)