Giter VIP home page Giter VIP logo

betterlifepsi's Introduction

Betterlife Intelligent PSI Travis (.org) Code Coverage

Intelligent PSI(Purchase, Sales and Inventory) management system

GitHub Code Health Requires.io commits since release Release PyPI

Try to answer some questions like

  • Which product generates the most revenue/profit in my store and what's the data?
  • When do I need to replenish the stock and how much do I lost if that's not done?
  • What is the optimized quantity/date for replenish the stock?

Install & Run & Deploy

  • Run using Docker (Recommend)

    • Make sure docker is installed and configured correctly.
    • Clone the code via git clone https://github.com/betterlife/betterlifepsi.git
    • cd betterlifepsi && docker-compose build && docker-compose up to build and run the docker image
    • Please notice the database data is mounted to a docker volume called psi_data by default.
  • Install and run locally

    • Clone the code via git clone https://github.com/betterlife/betterlifepsi.git
    • pip install -r requirements.txt to install runtime dependencies.
    • pip install -r etc/requirements/test.txt to install development dependencies.
    • Create postgresql database and user for the application.
    • Set follow environment variables:
      • DATABASE_URL : Database URL, only postgresql is tested as of now.
      • FLASK_APP: Should be set to psi.cli:application
      • SECURITY_PASSWORD_SALT : password salt for password generation
      • SECRET_KEY : secret key for password generation
      • CLOUDINARY_URL : Cloudinary URL if use cloudinary to store image attachments
      • SENTRY_DSN : Sentry DSN if use sentry to handle exceptions
    • flask run to run the application
    • Set environment variable TEST_DATABASE_URL and invoke flask test to run tests.
  • Install and run on heroku

    • Click button Deploy to deploy current version to heroku.

Links

License

Betterlife PSI uses MIT License

betterlifepsi's People

Contributors

muyanadmin avatar pyup-bot avatar quantifiedcode-bot avatar xqliu avatar

Watchers

 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.