Shop project built with FastAPI
This repository contains code of API for small e-commerce shop and built on the top of FastAPI framework.
In this repository implemented such functions as:
User registration with OAuth2, passlib[bcrypt];
Sending verification email to confirm user registration with jwt;
Creating supplier company;
User login/logout;
Uploading images for user profile;
Uploading images of products;
CRUD functionality.
Python >= 3.8
fastapi>=0.70.0
fastapi-mail>=1.0.2
Jinja2>=3.0.3
Pillow>=9.0.0
PyJWT>=2.3.0
python-dotenv>=0.19.2
starlette>=0.16.0
tortoise-orm>=0.18.1
uvicorn>=0.16.0
passlib>=1.7.4
sqlite3
To run this repository clone it via
git clone https://github.com/Igor-Kuz/FastAPIshop.git
After cloning this repository don't forget to give it *!
To run code just create and activate your virtual environment
Then install requirement libraries from requirements.txt file wia
pip install -r requirements.txt
Create .env file and input there your sensitive data
Don't forget to create in project root static directory with images directory inside it to upload images there.
And then to run your code use:
uvicorn main:app --reload
to use autorestart after changing code
To look through this app please visit