Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/)