Skip to content

DcSyedFaraz/EcommerceFastApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecommerce Admin API

Setup Instructions

  1. Clone this repository:
    git clone https://github.com/your-username/ecommerce-admin-api.git
    cd ecommerce-admin-api

2. Install dependencies:

   ```bash
   pip install -r requirements.txt
   ```

3. Set up MySQL database and configure `DATABASE_URL` in `database.py`.

4. Run the application:

   ```bash
   uvicorn app.main:app --reload
   ```

5. Populate the database with demo data:

   ```bash
   python demo_data.py
   ```

## API Endpoints

* `GET /sales/status`: Retrieve sales status.
* `GET /sales/revenue/{period}`: Retrieve revenue based on period (daily, weekly, etc.).
* `GET /inventory`: Retrieve inventory status with low stock alerts.
* `POST /product/`: Create a new product.

9. Running the Application

After setting everything up, you can run your FastAPI app using Uvicorn:

uvicorn app.main:app --reload

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages