kayesokua / fastapi-artshoppe

A Data API for E-commerce built with FASTAPI and ReactJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Artshoppe DATA API

An e-commerce web app for artists in-the-making. It follows a decoupled architecture, where the backend is built with Python's FASTAPI and the website client (frontend) is built with ReactJS-MUI Framework.

⚠️ The project is still in progress. Not all intended models and schemas are implemented yet. You can only sign up (with password hashing), sign in, and create a product item and review with basic authentication.

Drafted ERD:

Image

Check Diagram Here

Install and Run the App

Backend

  1. Go to the respective backend folder
cd/backend
  1. Create and activate the virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install the required packages
pip3 install -r requirements.txt
  1. Run the local server. The default port will be 'localhost:8000'. This should directly lead you to the API docs. If you delete the test.db, this will automatically regenerate a new sqlite database.
uvicorn main:app --reload

Image

Website Client

  1. Go to the respective backend folder
cd/frontend
  1. Install the required modules via npm
npm install
  1. Run the app on local server. The default port is 'localhost:3000'
npm start

Image

Testing

Random data generator for testing: https://gist.github.com/kayesokua/178affc5af73e01e9a7baa917dea23fa

About

A Data API for E-commerce built with FASTAPI and ReactJS


Languages

Language:Python 99.7%Language:C 0.2%Language:JavaScript 0.1%Language:PowerShell 0.0%Language:Shell 0.0%Language:HTML 0.0%Language:CSS 0.0%