fairDataSociety / fdp-create-account

Web app for creating FDS accounts
MIT License
3 stars 2 forks source link

FDP Create Account

Web application for registering new FDS accounts.

Configuration

To configure the application, create an .env file in the root directory. Set the following properties:

If the latest fdp-contract image is used as RPC provider, then contract addresses can be omitted.

Testnet ENS deployment

FairOS Testnet uses these Deployment addresses

NOTE: Check the .default.env file for more information

Build

To build the project:

npm run build

Files generated inside the build folder can be deployed to a web server.

Test

Before running tests start the fdp-play environment:

fdp-play start

Then start a local web server:

npm start

Then run tests:

npm run test:puppeteer

To buy postage stamp for fdp-play

 curl -s -XPOST http://localhost:1635/stamps/10000000/18

you will get respons like: {"batchID":"ea088d3f65f0f3ac2c3c6684b5e40e80e6ea0234e59b64aa156a9bfb7064a66c"}

To fund account from fdp-play

 node ./scripts/fund-new-account.js <account_address> <amount>

Import account with mnemonic