Skip to content

congson95dev/fastapi-very-first-tutorial

Repository files navigation

This is a FastAPI very first example of tutorial followed by this tutorial:
Also, we are stayed in here: https://fastapi.tiangolo.com/tutorial/debugging/

To install, use:
sudo pip3 install virtualenv
python3 -m venv venv
source venv/bin/activate
pip install "fastapi[all]"

To run the app:
uvicorn main:app --reload

After you run this command, go to http://127.0.0.1:8000/docs to see the result
In this command uvicorn main:app --reload, it run the main.py

Or could run by uvicorn sql_app.main:app --reload, it will go to sql_app folder, then run main.py
(This is a CRUD using sqlite db, but in very first look)

This tutorial is not fully present to us about the CRUD, so we need to learn from some other tutorials

There're serveral of tutorial that we can learn from, such as:
https://testdriven.io/blog/fastapi-beanie/
https://testdriven.io/blog/fastapi-mongo/

I've create a fully complete CRUD module:
https://github.com/saxsax1995/fast-api-postgres-crud-api

Also, for authenticate example, run uvicorn auth:app --reload or uvicorn auth-jwt:app --reload

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published