Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • dev
  • minh
  • trung
4 results

advancedsoftwareuwe_group1

  • Clone with SSH
  • Clone with HTTPS
  • nn2-minh's avatar
    Nguyen12.Minh@live.uwe.ac.uk authored
    add admin dashboard, update category function, admin use a seperate script to create account if admin account doesnt exist before that. Update run_app.py so that it can run init.py which initialization the script admin. Update relation between admin, owner and user. Update owner so that owner can update category into their product. Update owner dashboard so that it can display the category of the product. update readme for easier guide.
    3f51ac4c
    History

    1: Setup

    create venv
    pip install -r requirements.txt

    2: Database

    • make sure you have mysql server installed
    • create a schema called shopping with utf8 charset and utf8_unicode_ci collection

    3: Env

    create .env file based on .env.example in the main directory

    4: Run Backend API on your local machine

    • open terminal and use
      uvicorn app.backend.main:app --reload
    • open 127.0.0.1:8000/docs on your browser

    5: Admin Dashboard

    The application includes an admin dashboard with the following features:

    • User Management: View and delete regular user accounts
    • Shop Owner Management: View and delete shop owner accounts, including viewing their shops
    • Category Management: Create, update, and delete product categories

    Default Admin Credentials

    The default admin user is automatically created on first run of the application.

    To run the full application (backend + frontend):

    python run_app.py