Skip to content

creativefurniture/saleor-platform

 
 

Repository files navigation

saleor-platform

All Saleor services started from a single repository

Keep in mind this repository is for local development only and is not meant to be deployed on 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
  2. Docker Compose

How to run it?

  1. Clone the repository:
$ git clone git@github.com:mirumee/saleor-platform.git --recursive --jobs 3
  1. We are using shared folders to enable live code reloading. Without this, Docker Compose will not start:

    • Windows/MacOS: Add the cloned saleor-platform directory to Docker shared directories (Preferences -> Resources -> File sharing).
    • Windows/MacOS: Make sure that in Docker preferences you have dedicated at least 5 GB of memory (Preferences -> Resources -> Advanced).
    • Linux: No action required, sharing already enabled and memory for Docker engine is not limited.
  2. Go to the cloned directory:

$ cd saleor-platform
  1. Build the application:
$ docker-compose build
  1. Apply Django migrations:
$ docker-compose run --rm web python3 manage.py migrate
  1. Collect static files:
$ docker-compose run --rm web python3 manage.py collectstatic --noinput
  1. Populate the database with example data and create the admin user:
$ docker-compose run --rm web python3 manage.py populatedb --createsuperuser

Note that --createsuperuser argument creates an admin account for admin@example.com with the password set to admin.

  1. Run the application:
$ docker-compose up

Both storefront and dashboard are quite big frontend projects and it might take up to few minutes for them to compile depending on your CPU. If nothing shows up on port 3000 or 9000 wait until Compiled successfully shows in the console output.

How to update the subprojects to the newest versions?

This repository will contain newest stable versions. For now it contains unstable ones - with changes made after 2.9 due to some technical requirements that allows platform to work. When new release appear, pull new version of this repository. In order to update all of them to their newest (unstable) master versions, run:

$ git submodule update --remote

You can find the latest version of Saleor, storefront and dashboard in their individual repositories:

How to run application parts?

  • docker-compose up web celery for backend services only
  • docker-compose up for backend and frontend services

Where is the application running?

If you have any questions or feedback, do not hesitate to contact us via Spectrum or Gitter:

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 Mirumee Software

hello@mirumee.com

About

All Saleor services started from a single repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published