Skip to content

miniShop is a simple eCommerce API built with FastAPI.

License

Notifications You must be signed in to change notification settings

felixLandlord/eCommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniShop

FastAPI eCommerce API

MiniShop is a simple eCommerce API built with FastAPI. It includes features for user authentication, product management, cart functionality, and email notifications.

Features

  • User Authentication: Register, login, and manage users with JWT tokens.
  • Product Management: Create, update, and delete products.
  • Cart Functionality: Add products to the cart, update quantity, and view cart contents.
  • Email Notifications: Sends order confirmation and other notifications via email.

Tech Stack

  • FastAPI - Web framework for building APIs.
  • Tortoise ORM - Object Relational Mapper for interacting with the Sqlite database.
  • Sqlite - Relational database for storing product, user, and order data.
  • Uvicorn - ASGI server for running the FastAPI app.
  • Docker - Containerization for the API and database services.
  • Docker Compose - Tool for defining and running multi-container Docker applications.

Installation

  1. Clone the repository:
git clone https://github.com/felixLandlord/eCommerce.git
cd eCommerce
  1. Set up environment variables:
EMAIL=""
PASS="" 
SECRET=""

PASS is your gmail App password SECRET is a random generated token using the secrets library in python

  1. Install dependencies:
poetry install
poetry shell
  1. Build and run the Docker containers:
docker-compose up -d
  1. Access the API:
fastapi dev

Endpoints:

minishop.png

About

miniShop is a simple eCommerce API built with FastAPI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published