Skip to content

Payinv is a control system for Sales <-> Invoices And Payments for Customer.

License

Notifications You must be signed in to change notification settings

roramirez/payinv

Repository files navigation

Payinv

Payinv is a control system for Sales <-> Invoices And Payments for Customer.

Software Stack

The code base is written using the Django with PostgreSQL as database.

Includes the follow Javascripts and CSS libraries and toolkit

To change the backend database should set this into the file src/payinv/settings/base.py in the DATABASES section.

Installing

First to all you be sure in your system has installed Python 3, PostgreSQL and NPM

  1. With npm install CSS/Javascript dependencies:

    npm install
    
  2. Create a database in your PostreSQL called payinv_production and the role permission for user payinv

  3. Set credentials

    1. You can edit directly the file src/payinv/settings/base.py and set the database connection credencials and SECRET_KEY

    2. Other way is set by environment variables:

      export PAYINV_ENVIRONMENT=production
      export PAYINV_DATABASE_PASSWORD=mypassword
      export PAYINV_SECRET_KEY=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64|head -n 1)
      
  4. Install dependencies and set Python enviroment:

    python3 -m venv venv
    . venv/bin/activate
    pip install -r requirements.txt
    
  5. Run init script:

    ./run-payinv.sh
    

About

Payinv is a control system for Sales <-> Invoices And Payments for Customer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published