Skip to content

dsahero/simplystocked

Repository files navigation

SimplyStocked

Inventory management system for The Market of Virginia Tech.


Run Locally

Prerequisites

  • Node.js
  • Python 3.10+
  • MySQL 8.0+

Frontend

  1. Navigate to the frontend directory:
    cd frontend
  2. Install dependencies:
    npm install
  3. Set the GEMINI_API_KEY in frontend/.env.local to your Gemini API key
  4. Run the app:
    npm run dev

The frontend will be available at http://localhost:5173


Backend

  1. Navigate to the backend directory:

    cd backend
  2. Create and activate a virtual environment:

    python -m venv venv
    # Windows
    venv\Scripts\activate
    # Mac/Linux
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Create a .env file in the backend/ directory and add your database password:

    DB_PASSWORD=your_mysql_password
    
  5. Make sure your MySQL server is running and the simplystocked schema exists. Run the database dump using MySQL Workbench

  6. Start the API server:

    uvicorn main:app --reload

The API will be available at http://localhost:8000
Interactive API docs: http://localhost:8000/docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors