Implement crud functionality using fastApi
-
Create folder
mkdir foldername
-
Create Virtualenv
python3 -m venv x
-
Activate Virtualenv
source x/bin/activate
-
Clone this project
git clone https://github.com/siumhossain/crud_functionality_in_fastApi
-
Requirements installation
pip3 -r requirements.txt
-
Create Database
touch sql.db
Go to
database.py
and change this line for connect with databaseSQLALCHEMY_DATABASE_URL = "sqlite:///./sql.db"
-
Change security key
openssl rand -hex 32
paste this key to :
routers/token.py
-->SECRET_KEY = "enter your security key"
-
Run
uvicorn main:app --reload
Doc link for this API --> click here
Fast API doc --> click here