Deploy Locally Without Docker

note

PayString was previously known as PayID.

Basic requirements#

Make sure your system meets these requirements before you set up a PayString server.

  • RAM: Minimum of 100 MB
  • Postgres: 11.7 or later, with pgpool-II in front
  • Node.js version: 12 or later

Before you begin, make sure that you have installed Postgres locally, or in an otherwise accessible location.

  1. Clone the PayString repo. git clone https://github.com/paystring/paystring.git && cd payid

  2. Install dependencies.

    npm i

  3. Generate the build files in build/* (app code + SQL scripts).

    npm run build

  4. Start PayString. The npm run start command generates the schema if it does not yet exist.

    DB_HOSTNAME=localhost DB_NAME=dev_payid DB_USERNAME=payid_dev
    DB_PASSWORD='xxxxx' npm run start
  5. To make sure PayString runs continuously, run PayString through a tool like forever.

    npm install forever -g

  6. Run PayString with forever.

    DB_HOSTNAME=localhost DB_NAME=dev_payid DB_USERNAME=payid_dev
    DB_PASSWORD='xxxxx' forever start build/src/index.js