Git Product home page Git Product logo

saleor's Introduction

Saleor

Avast ye landlubbers! Saleor be a Satchless store ye can fork.

Build Status

Usage

  1. Use django-admin.py to start a new project using Saleor as template:

    $ django-admin.py startproject \
    --template=https://github.com/mirumee/saleor/archive/master.zip myproject
    
  2. Enter the directory:

    $ cd myproject/
    
  3. Install it in development mode:

    $ python setup.py develop
    

    (For production use python setup.py install instead.)

  4. Prepare the database:

    $ saleor syncdb
    

    saleor is a shortcut for running python manage.py so you can use it to execute all management commands.

Deploy to Heroku

First steps

$ heroku create --buildpack https://github.com/ddollar/heroku-buildpack-multi.git
$ heroku addons:add heroku-postgresql
$ heroku config:set SECRET_KEY='<your secret key here>'
$ heroku config:set ALLOWED_HOSTS='<your hosts here>'

Amazon S3

Configure S3 for serving media files:

$ heroku config:set AWS_ACCESS_KEY_ID='<your key id>'
$ heroku config:set AWS_SECRET_ACCESS_KEY='<your access key>'
$ heroku config:set AWS_MEDIA_BUCKET_NAME='<your bucket name>'

saleor supports serving static files through WhiteNoise by default. If you intend to use S3 for your static files as well, set the following config variable:

$ heroku config:set AWS_STATIC_BUCKET_NAME='<your bucket name>'

Deploy

$ git push heroku master

Prepare the database

$ heroku run python manage.py migrate

Google Analytics

Because of EU law regulations, Saleor will not use any tracking cookies by default. We do support server-side Google Analytics out of the box using Google Analytics Measurement Protocol. This is implemented using google-measurement-protocol and does not use cookies at the cost of not reporting things like geolocation and screen resolution.

To get it working you will need to set the GOOGLE_ANALYTICS_TRACKING_ID in your settings file:

# settings.py
GOOGLE_ANALYTICS_TRACKING_ID = 'UA-123456-78'

Testing changes

Run the tests to make sure everything works:

$ python setup.py test

Commercial support

Disclaimer: everything you see here is open and free to use as long as you comply with the license. It is not a bait to force you to pay us later and we promise to do our bests to fix bugs and improve the code.

Some situations however call for extra code being written. Whether you need us to cover an exotic use case or build you a custom e-commerce appliance, our team can help.

Mirumee Software
http://mirumee.com/
[email protected]

saleor's People

Contributors

mociepka avatar maarcingebala avatar patrys avatar artursmet avatar marekbrzoska avatar bogdal avatar zauddelig avatar sergiobrr avatar mindflayer avatar derenio avatar

Watchers

James Cloos avatar Bahrul Hidayat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.