- Original Repo: https://github.com/mirumee/saleor-platform
- This Project is a rudimentary
The site lieblingsladen.gera is to be converted into a regional marketplace for the city of Gera. This project shall help to visualize a headless e-commerce approach.
general:
for example populate:
- python3
- modules: aiogqlc, requests
for remote setup on ubuntu:
- local machine is linux distro
- python3
- modules: ansible
All python modules are included in /setup/pipfile
for a virtual env.
- install pipenv
- navigate into
/setup
- run
pipenv install
- run
pipenv shell
- navigate into repo.
- Follow official dokumentation. Instead of using the default
docker-compose.yml
use docker-compose.customfrontend.yml
.
Example:
docker-compuse -f docker-compose.customfrontend.yml up
Required:
- basic Ansible knowledge
Steps:
- add
hosts
file toansible/config/
- add your host to it (see Ansible Documentation)
- navigate to
/setup/
and runsource export_env.sh
- add private key fore server to ssh agend
- navigate to
ansible
- update
access_control_allow_origin
insetup_server.yml
to match your domain - run
ansible-playbook setup_server.yml
- do setp 2 of local setup on remote system
Docker-compose file: docker-compose.customfrontend.cloud.yml
See Original Doku.
Difference:
- Run
docker-compose.customfrontend.yml
instad ofdocker-compose.yml
with docker compose. (like in local setup)
- navigate to
setup
folder - edit
GRAPHQL_URL
inpopulate_saleor.py
to match your env. - export env. var
GRAPHQL_BEAR_TOKEN
with your bear token (How to create token with api?/ Dashboard) - run
python3 populate_saleor.py
- Gera Storefront - http://localhost:3000
- Saleor Dashboard - http://localhost:9000
- Saleor Core (API) - http://localhost:8000
- Jaeger UI (APM) - http://localhost:16686
- Mailhog (Test email interface) - http://localhost:8025
See BSD 3-Clause License.