A Online Shop
┌─────────────────┐
┌──────────┐ │ (Backend) │ ┌────────────┐
│ (Data) ├─────► Django Server ├─────► │
│ │ └─────────────────┘ │ (Frontend) │
│ MariaDB │ ┌─────────────────┐ │ Next.js │
│ Docker ├─────► (ML) ├─────► │
└──────────┘ │ Flask Server │ └────────────┘
└─────────────────┘
Mariadb Database
-
Install
Docker
-
Go to
Docker
folder:
cd .\Data\Docker
- Run Mariadb docker compose:
docker-compose -f "mariadb-docker-compose.yml" up -d --build
Python Server (Django)
-
Clone the project
https://github.com/barkand/next_shop
-
Install
python3.7.8
in your system. -
Install python Environement in
.\Backend
path:
python -m venv .venv
- Active python and install python packages:
.\.venv\Scripts\activate
pip install -r requirements.txt
- Go to
backend
folder and run python:
cd .\Backend\
.\.venv\Scripts\activate
-
Run
Backend Server
usingpython manage.py runserver
-
Go to http://localhost:8000 to check backend Server.
- Recommender System
Pyhton Server (Flask)
- Install python Environement in
.\Ml
path:
python -m venv .ml
- Go to
api
folder and run python:
cd .\ML\api\
..\.ml\Scripts\activat
- Install python packages:
pip install -r requirements.txt
-
Run
ML Server
usingflask run
-
Go to http://localhost:5000 to check ML Server.
Nodejs Server (Next.js)
-
Install
nodejs
in your system. -
Install package.json.
-
Go to
Shop
folder:
cd .\Frontend\shop\
-
Run
Frontend Server
usingnpm run dev
-
Go to http://localhost:3000 to see your NextShop version.