GithubHelp home page GithubHelp logo

dhfinance / dhf-pay-processor Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 7.0 470 KB

The crypto currency payment gateway on the CSPR blockchain

Home Page: https://dhfi.io

License: Apache License 2.0

TypeScript 68.60% Shell 0.87% JavaScript 1.53% Handlebars 24.47% HTML 4.53%
blockchain cspr casper payment-gateway

dhf-pay-processor's Introduction

DHF PAY

The crypto currency payment gateway on the CSPR blockchain. Made for pay and be paid easy and chill with blockchain and Casper Network. System composed of 3 services:

Name Link Description
Backend https://github.com/DHFinance/dhf-pay-back Service backend
Frontend https://github.com/DHFinance/dhf-pay-front Service frontend
Processor https://github.com/DHFinance/dhf-pay-processor Process a background tasks

Installation using docker

See https://github.com/DHFinance/dhf-pay-deploy

Install

$ npm install

Create .env

Create .env file like an example file env.sample

#Database settings
DB_HOST = localhost
DB_PORT = 5432
DB_PASSWORD = Ytrewq654321
DB_USER = postgres
DB_DATABASE = casper
DB_SYNCRONIZE = true
DB_LOGGING = true
TYPEORM_MIGRATIONS_RUN = true
#Password encrypt hash
SECRET_HASH = passwordHashSecret
#Admin e-mail. Does`t need a verification 
ADMIN_EMAIL = [email protected]
#Credentals of mail account which will be used for mailing
MAILER_EMAIL = [email protected]
MAILER_PASSWORD = BCf!rufxQeYF@KVD87s76
#SMTP client settings
MAILER_HOST = smtp.gmail.com
MAILER_SSL = 1
MAILER_QAUTH = 1
MAILER_PORT = 465
#RabbitMQ connection string
RABBIT_MQ=amqps://tncqeoap:[email protected]/tncqeoap
CASPER_TRX_MONITORING_API=https://event-store-api-clarity-mainnet.make.services/deploys/
CASPER_TRX_CHECK_TRANSACTION=https://event-store-api-clarity-mainnet.make.services/raw-processed-deploys/

Run

$ npm run build
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Run a specific test file

To run a separate file with tests, for example user.service.spec.ts in the user folder

jest src/user/user.service.spec.ts

Run tests

To run the tests, enter at the root of the project

npm run test

dhf-pay-processor's People

Contributors

andarg avatar dependabot[bot] avatar enflow-io avatar jx-29 avatar reppin1 avatar tqhuy2018 avatar yousheng21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dhf-pay-processor's Issues

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.