{"id":18072128,"url":"https://github.com/luismayta/example-django-sales","last_synced_at":"2025-04-05T17:42:29.778Z","repository":{"id":43009394,"uuid":"233395083","full_name":"luismayta/example-django-sales","owner":"luismayta","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-08T22:15:59.000Z","size":28536,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-02-11T14:47:22.805Z","etag":null,"topics":["django","example","peru","python","sales"],"latest_commit_sha":null,"homepage":"","language":"Less","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luismayta.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["luismayta"],"patreon":null,"open_collective":null,"ko_fi":"luismayta","tidelift":null,"community_bridge":null,"liberapay":"luismayta","issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/luismayta","https://www.buymeacoffee.com/luismayta","https://amzn.com/w/1VJ9F3BEK0S8B"]}},"created_at":"2020-01-12T13:15:38.000Z","updated_at":"2024-06-26T22:17:35.000Z","dependencies_parsed_at":"2024-04-21T10:36:49.424Z","dependency_job_id":"5d4a42a3-4379-4d9c-8a87-2f657564fb42","html_url":"https://github.com/luismayta/example-django-sales","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luismayta%2Fexample-django-sales","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luismayta%2Fexample-django-sales/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luismayta%2Fexample-django-sales/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luismayta%2Fexample-django-sales/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luismayta","download_url":"https://codeload.github.com/luismayta/example-django-sales/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378088,"owners_count":20929292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","example","peru","python","sales"],"created_at":"2024-10-31T09:19:07.425Z","updated_at":"2025-04-05T17:42:29.753Z","avatar_url":"https://github.com/luismayta.png","language":"Less","readme":"sales\n#############################\n\n|build_status| |code_climate| |github_tag| |issues_count| |github_issues| |test_coverage| |license|\n\n:Version: 0.0.0\n:Web: https://bitbucket.org/devdiana/sales\n:Download: http://bitbucket.org/devdiana/sales\n:Source: http://bitbucket.org/devdiana/sales\n:Keywords: sales\n\nSales system Retail\n\n.. contents:: Table of Contents:\n    :local:\n\nRequirements\n============\n\nThis is a list of applications that need to be installed previously to enjoy all the goodies of this configuration:\n\n- `Python 3.6.1`_\n- `Docker`_\n\nFlight To Infinity... and Beyond\n--------------------------------\n\nFirst, 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/).\n\n.. code-block:: bash\n\n  $ pip install -r requirements/dev.txt\n  $ docker-compose up --build\n  $ docker-compose run --rm web make migrate\n  $ docker-compose run --rm web make pm action=createsuperuser\n  $ docker-compose run --rm web make pm action=populate  # Populate with default data\n\n- Do not forget to stop your postgresql service if this is running on the 5432 port.\n\nThen, we run a local development server doing this.\n\n.. code-block:: bash\n\n  $ docker-compose run --rm --service-ports web make runserver\n\nIn order to run the shell of Django we need to run this.\n\n.. code-block:: bash\n\n  $ docker-compose run --rm web make pm action=shell\n\nOr another command, without any argument.\n\n.. code-block:: bash\n\n  $ docker-compose run --rm web make pm action={another command}\n\nIn order to delete your database and create another one we need to enter the\ncontainer doing something like this:\n\n.. code-block:: bash\n\n  $ docker ps  # We need to identify the container_id.\n  $ docker exec -it {posgis_container_id} bash\n  $ dropdb $POSTGRES_DB -U $POSTGRES_USER\n  $ createdb $POSTGRES_DB -U $POSTGRES_USER\n\n\nDeveloping\n==========\n\nSales depends a django - Python web framework.\n\n\nEnvironment\n-----------\n\n.. code-block:: bash\n\n  export AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxx\n  export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n  export AWS_DEFAULT_REGION=us-west-2\n  export FLASK_DEBUG=1\n\n\nEnvironment variables on your AWS Console\n-----------------------------------------\n\nSet environment variables on your AWS console.\n\n.. code-block:: bash\n\n  export POSITIVA_COD_SERVICIO=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n  export POSITIVA_APP_CONSUMIDORA=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n  export POSITIVA_USER=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n  export POSITIVA_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n  export FACEBOOK_APP_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n  export FACEBOOK_APP_VERSION=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n  export FACEBOOK_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n  export FACEBOOK_PAGE_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n  export FACEBOOK_VERIFY_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n\nOthers\n------\n\nOther commands for developing are written in Makefile:\n\n.. code-block:: bash\n\nλ make help\n  Commands:\n    build                Build docker container\n    clean                clean Files compiled\n    runserver            Runserver\n    up                   Up application\n    deploy               Deploy Application\n    environment          Make environment for developer\n    documentation        Make Documentation\n    install              Install Dependences\n    lint                 Clean files unnecesary\n    test                 make test\n    help                 Show help text\n\n\nChangelog\n=========\n\nPlease see `changelog`_ for more information what has changed recently.\n\nContributing\n============\n\nPlease see `contributing`_ for details.\n\nCredits\n=======\n\nMade with :heart: :coffee:️and :pizza: by `company`_.\n\n- `All Contributors`_\n\n.. |code_climate| image:: https://codeclimate.com/github/devdiana/sales/badges/gpa.svg\n  :target: https://codeclimate.com/github/devdiana/sales\n  :alt: Code Climate\n\n.. |github_tag| image:: https://img.shields.io/github/tag/devdiana/sales.svg?maxAge=2592000\n  :target: https://bitbucket.org/devdiana/sales\n  :alt: Github Tag\n\n.. |build_status| image:: https://travis-ci.org/devdiana/sales.svg\n  :target: https://travis-ci.org/devdiana/sales\n  :alt: Build Status Tag\n\n.. |github_issues| image:: https://img.shields.io/github/issues/devdiana/sales.svg\n  :target: https://bitbucket.org/devdiana/saleshadenlabs/cookiecutter-python-project/issues\n  :alt: Github Issues\n\n.. |issues_count| image:: https://codeclimate.com/github/devdiana/sales/badges/issue_count.svg\n  :target: https://codeclimate.com/github/devdiana/sales\n  :alt: Issue Count\n\n.. |license| image:: https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square\n  :target: LICENSE\n  :alt: License\n\n.. |test_coverage| image:: https://codeclimate.com/github/devdiana/sales/badges/coverage.svg\n  :target: https://codeclimate.com/github/devdiana/sales/coverage\n  :alt: Test Coverage\n\n..\n   Links\n\n.. _`changelog`: CHANGELOG.rst\n.. _`contributors`: AUTHORS\n.. _`contributing`: CONTRIBUTING.rst\n.. _`company`: https://bitbucket.org/devdiana\n.. _`author`: https://github.com/luismayta\n","funding_links":["https://github.com/sponsors/luismayta","https://ko-fi.com/luismayta","https://liberapay.com/luismayta","https://www.paypal.me/luismayta","https://www.buymeacoffee.com/luismayta","https://amzn.com/w/1VJ9F3BEK0S8B"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluismayta%2Fexample-django-sales","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluismayta%2Fexample-django-sales","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluismayta%2Fexample-django-sales/lists"}