Skip to content

GeorgeSedhom0/StoreSystem

Repository files navigation

OpenStore, a modern open-source store front app

Installation

  1. Clone the repository
  • Install the frontend
  1. Go to the frontend directory
  2. Run npm install
  • Install the backend
  1. Go to the backend directory
  2. Create a virtual environment python3 -m venv venv
  3. Activate the virtual environment source venv/bin/activate (Linux) or venv\Scripts\activate (Windows)
  4. Run pip install -r requirements.txt

Setting up the database

  • Create the database
  1. Install PostgreSQL
  2. Create a database and name it something you like
  3. Have a user with full access to the database and a password
  • Configure the backend
  1. Create a .env file in the backend directory with the following content:
STORE_ID = 0
HOST = "localhost"
DATABASE = "database_name"
USER = "database_user"
PASS = "database_password"
SECRET = "some long secret key"
ALGORITHM = "HS256"
  1. Replace the values with your own
  • Create the tables
  1. Go to the backend directory
  2. Make sure the virtual environment is activated
  3. Run python init.py
  • Configure the frontend
  1. Go to the frontend directory
  2. Create a .env file with the following content:
VITE_SERVER_URL=http://localhost:8000
VITE_STORE_ID=0
  1. Leave these values exactly the same

Running the app

  • Run the frontend
  1. Go to the frontend directory
  2. Run npm run dev
  • Run the backend
  1. Go to the backend directory
  2. Make sure the virtual environment is activated
  3. Run uvicorn main:app --reload

First steps

  1. Go to http://localhost:5173 in your browser
  2. Login with the default credentials:
  • Username: george
  • Password: verystrongpassword

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •