This repository contains code of API for small e-commerce shop and built on the top of FastAPI framework.
- 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
git clone https://github.com/Igor-Kuz/FastAPIshop.git
pip install -r requirements.txt
Don't forget to create in project root static directory with images directory inside it to upload images there.
uvicorn mani:app
uvicorn main:app --reload
localhos:8000/docs