Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

barkand/Next_Shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next Shop

A Online Shop

Demo:

shop.aionchain.co shop.aionchain.co shop.aionchain.co


                 ┌─────────────────┐
┌──────────┐     │    (Backend)    │     ┌────────────┐
│  (Data)  ├─────►  Django Server  ├─────►            │
│          │     └─────────────────┘     │ (Frontend) │
│  MariaDB │     ┌─────────────────┐     │   Next.js  │
│  Docker  ├─────►      (ML)       ├─────►            │
└──────────┘     │  Flask Server   │     └────────────┘
                 └─────────────────┘

Python Django DjangoREST

JavaScript Next JS MUI Redux JWT

Flask Pandas NumPy

Docker MariaDB

How to run

Data:

Mariadb Database

  1. Install Docker

  2. Go to Docker folder:

    cd .\Data\Docker
  1. Run Mariadb docker compose:
    docker-compose -f "mariadb-docker-compose.yml" up -d --build

Backend:

Python Server (Django)

  1. Clone the project https://github.com/barkand/next_shop

  2. Install python3.7.8 in your system.

  3. Install python Environement in .\Backend path:

   python -m venv .venv
  1. Active python and install python packages:
   .\.venv\Scripts\activate
   pip install -r requirements.txt
  1. Go to backend folder and run python:
    cd .\Backend\
    .\.venv\Scripts\activate
  1. Run Backend Server using python manage.py runserver

  2. Go to http://localhost:8000 to check backend Server.

ML:

  • Recommender System

Pyhton Server (Flask)

  1. Install python Environement in .\Ml path:
   python -m venv .ml
  1. Go to api folder and run python:
   cd .\ML\api\
   ..\.ml\Scripts\activat
  1. Install python packages:
   pip install -r requirements.txt
  1. Run ML Server using flask run

  2. Go to http://localhost:5000 to check ML Server.

Frontend:

Nodejs Server (Next.js)

  1. Install nodejs in your system.

  2. Install package.json.

  3. Go to Shop folder:

    cd .\Frontend\shop\
  1. Run Frontend Server using npm run dev

  2. Go to http://localhost:3000 to see your NextShop version.