If you want to set up and run a PayID server, you have several options. This document describes how to run a PayID server without using Docker.
For other ways to deploy a PayID server, see:
Before you begin, make sure that you have installed Postgres locally, or in an otherwise accessible location.
-
Clone the PayID repo.
git clone https://github.com/xpring-eng/payid.git && cd payid
-
Install dependencies.
npm i
-
Generate the build files in
build/*
(app code + SQL scripts).npm run build
-
Start PayID. 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
-
To make sure PayID runs continuously, run PayID through a tool like
forever
.npm install forever -g
-
Run PayID with
forever
.DB_HOSTNAME=localhost DB_NAME=dev_payid DB_USERNAME=payid_dev DB_PASSWORD='xxxxx' forever start build/src/index.js