Version: | 0.0.0 |
---|---|
Web: | https://bitbucket.org/devdiana/sales |
Download: | http://bitbucket.org/devdiana/sales |
Source: | http://bitbucket.org/devdiana/sales |
Keywords: | sales |
Sales system Retail
Table of Contents:
This is a list of applications that need to be installed previously to enjoy all the goodies of this configuration:
First, we need to install some requiments inside a virtualenv and then we have to build and run up all the services. Then we need to migrate our database and create a super user in order to acced the admin (http://localhost/admin/).
$ pip install -r requirements/dev.txt
$ docker-compose up --build
$ docker-compose run --rm web make migrate
$ docker-compose run --rm web make pm action=createsuperuser
$ docker-compose run --rm web make pm action=populate # Populate with default data
- Do not forget to stop your postgresql service if this is running on the 5432 port.
Then, we run a local development server doing this.
$ docker-compose run --rm --service-ports web make runserver
In order to run the shell of Django we need to run this.
$ docker-compose run --rm web make pm action=shell
Or another command, without any argument.
$ docker-compose run --rm web make pm action={another command}
In order to delete your database and create another one we need to enter the container doing something like this:
$ docker ps # We need to identify the container_id.
$ docker exec -it {posgis_container_id} bash
$ dropdb $POSTGRES_DB -U $POSTGRES_USER
$ createdb $POSTGRES_DB -U $POSTGRES_USER
Sales depends a django - Python web framework.
export AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxx
export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export AWS_DEFAULT_REGION=us-west-2
export FLASK_DEBUG=1
Set environment variables on your AWS console.
export POSITIVA_COD_SERVICIO=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export POSITIVA_APP_CONSUMIDORA=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export POSITIVA_USER=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export POSITIVA_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export FACEBOOK_APP_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export FACEBOOK_APP_VERSION=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export FACEBOOK_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export FACEBOOK_PAGE_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export FACEBOOK_VERIFY_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Other commands for developing are written in Makefile:
- λ make help
- Commands:
- build Build docker container clean clean Files compiled runserver Runserver up Up application deploy Deploy Application environment Make environment for developer documentation Make Documentation install Install Dependences lint Clean files unnecesary test make test help Show help text
Please see changelog for more information what has changed recently.
Please see contributing for details.
Made with ❤️ ☕️and 🍕 by company.