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 |
See https://github.com/DHFinance/dhf-pay-front/blob/main/UserGuide.pdf
See https://github.com/DHFinance/dhf-pay-deploy
$ npm install
Create .env baset on env.sample
#Casper-back url
NEXT_PUBLIC_API_HOST=http://localhost:3001
#Fake transaction mode. With a value of 0, it works with signer and creates real transactions registered with casper (only available on localhost for now). If 1 - fake mode for other domains, transactions are hardcoded and created without the participation of signer
NEXT_PUBLIC_FAKE_TRANSACTION=0
NEXT_PUBLIC_CASPER_NODE = https://node-clarity-testnet.make.services/rpc
NEXT_PUBLIC_CASPER_NETWORK = testnet.cspr.live
NEXT_PUBLIC_CAPTCHA_KEY = googleCaptcha key
After run casper-back and casper-processor run casper-front
$ npm run build
$ npm run start
To run a separate file with tests, for example store.reducer.spec.ts in the test folder
jest test/store.reducer.spec.ts
To run an action test, such as the payment.action.spec.ts file in the tests folder, you need to enable the server, since this test sends a request to the server and adds payment
To run the tests, enter at the root of the project
npm run test