Skip to content
프로젝트

소개

모든 Saleor 서비스는 하나의 저장소에서 시작되며 Docker Compose를 사용합니다.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Saleor Platform

Saleor Platform

Run all Saleor services from one repository.

Get to know Saleor:
Talk to a human | Talk to the API

About

What is Saleor Platform?

Saleor Platform is the easiest way to start local development with all the major Saleor services:

Keep in mind this repository is for local development only and is not meant to be deployed in any production environment! If you're not a developer and just want to try out Saleor you can check our live demo.

Requirements

  1. Docker

How to clone the repository?

To clone the repository, run the following command

git clone https://github.com/saleor/saleor-platform.git

How to run it?

  1. Project is using shared folders to enable live code reloading. For macOS and Windows users following steps are required to run Docker compose:

    • Add the cloned saleor-platform directory to Docker shared directories (Preferences -> Resources -> File sharing).
    • In Docker preferences dedicate at least 5 GB of memory (Preferences -> Resources -> Advanced).
  2. Go to the cloned directory:

cd saleor-platform
  1. Apply Django migrations:
docker compose run --rm api python3 manage.py migrate
  1. Populate the database with example data and create the admin user:
docker compose run --rm api python3 manage.py populatedb --createsuperuser

Note that --createsuperuser argument creates an admin account for [email protected] with the password set to admin.

  1. Run the application:
docker compose up

Where is the application running?

Troubleshooting

How to solve issues with lack of available space or build errors after an update

Most of the time both issues can be solved by cleaning up space taken by old containers. After that, we build again whole platform.

  1. Make sure docker stack is not running
docker compose stop
  1. Remove existing volumes

Warning! Proceeding will remove also your database container! If you need existing data, please remove only services that cause problems! https://docs.docker.com/compose/reference/rm/

docker compose rm
  1. Build fresh containers
docker compose build
  1. Now you can run a fresh environment using commands from How to run it? section. Done!

Still no available space

If you are getting issues with lack of available space, consider pruning your docker cache:

Warning! This will remove:

  • all stopped containers
  • all networks not used by at least one container
  • all dangling images
  • all dangling build cache

More info: https://docs.docker.com/engine/reference/commandline/system_prune/

I've been warned

docker system prune

Issues with migrations after changing the versions - resetting the database

Please submit an issue ticket if you spot issues with database migrations during the version update.

When testing developer releases or making local changes, you might end up in a state where you would like to reset the database completely. Since its state is persisted in the mounted volume, you'll need to use a dedicated command.

Warning! This command will remove all data already stored in the database.

I've been warned

docker compose down --volumes db

How to run application parts?

  • docker compose up api worker for backend services only
  • docker compose up for backend and frontend services

Feedback

If you have any questions or feedback, do not hesitate to contact us via GitHub Discussions.

License

Disclaimer: Everything you see here is open and free to use as long as you comply with the license. There are no hidden charges. We promise to do our best to fix bugs and improve the code.

Some situations do call for extra code; we can cover exotic use cases or build you a custom e-commerce appliance.

Crafted with ❤️ by Saleor Commerce

[email protected]

관련 프로젝트 살펴보기

불러오는 중…