Skip to content

This is a project to learn github best practices and learn how to use FastAPI effectively. It describes an end to end project, with the best practices being followed while writing the code.

License

Notifications You must be signed in to change notification settings

goyalpramod/cars-api

Repository files navigation

cars_api

A simple example of using Fast API in Python.

Preconditions:

  • Python 3

Run local

Install dependencies

pip install -r requirements.txt

Run server

uvicorn app.main:app --reload

Run test

pytest app/test.py

Run with docker

Run server

docker-compose up -d --build

Run test

docker-compose exec app pytest test/test.py

API documentation (provided by Swagger UI)

http://127.0.0.1:8000/docs

Run server

docker-compose exec db psql --username=fastapi --dbname=fastapi_dev

Best Practices

About

This is a project to learn github best practices and learn how to use FastAPI effectively. It describes an end to end project, with the best practices being followed while writing the code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published