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

https://github.com/lucasfrancaid/poc-fastapi

Proof of concept of the FastAPI. This repository was used in my publish on Medium.
https://github.com/lucasfrancaid/poc-fastapi

api fastapi medium-article python python3 tutorial

Last synced: 5 months ago
JSON representation

Proof of concept of the FastAPI. This repository was used in my publish on Medium.

Awesome Lists containing this project

README

          

[![LinkedIn][linkedin-shield]][linkedin-url]

# POC - FastAPI
- Learn to create this API with my publish in [Medium](https://medium.com/@lucasfrancaid/como-criar-uma-api-em-python-com-fastapi-e-primeiras-impress%C3%B5es-sobre-o-framework-492d9779a6ae?sk=1c4c52504129521eca69fd41a6e65023)
- [POC - Advancing to Routes and Tests](https://github.com/lucasfrancaid/poc-fastapi/tree/advancing)

## Requirements
- Python 3.6+

## 🚀 Starting
- Clone this repository:
```bash
git clone https://github.com/lucasfrancaid/poc-fastapi.git
```

- Create and activate a virtual environment:
```bash
python3 -m venv .venv
source .venv/bin/activate
```

- Install requirements:
```bash
pip install -r requirements.txt
```

- Run the live server with uvicorn:
```bash
uvicorn main:app --reload
```

## ▶️ Do requests
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc

## 📬 Contact
Lucas França

Linkedin: https://www.linkedin.com/in/lucasfrancaid/


[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/lucasfrancaid