Skip to content

Latest commit

 

History

History
78 lines (49 loc) · 1.35 KB

README.md

File metadata and controls

78 lines (49 loc) · 1.35 KB

PSP - Payment Service Provider

The application is a simple example of transactions and payables

Installation

PSP requires Node.js v8+ to run and PostgreSQL

Install the dependencies and devDependencies and start the server.

$ git clone https://github.com/brunoflegler/api-pay-transactions.git
$ cd api-pay-transactions

Installation is done using the npm install command:

$ npm install

Or run Yarn install command:

$ yarn install

Migrations

To run the test suite, first install the dependencies, and configure .env.test and run migrations

$ sequelize db:migrate

Test

To run the test suite, first install the dependencies, and configure .env.test, migrations and run npm test:

$ npm test

Or run Yarn:

$ yarn test

Run development

To run, first install the dependencies, and configure .env, migrations and run npm test:

Run NPM development:

$ npm run dev

Or run Yarn development:

$ yarn dev

Run production

To run, first install the dependencies, and configure .env, migrations and run npm test:

Run Pm2 development:

$ pm2 start ecosystem.config.js --env production

Documentation

Follow our use guide for more information. http://psp.myhobbies.com.br.