A simple web application that is used to distribute Divi to testnet wallets on the network.
-
run
yarn server
. -
In a separate tab run
yarn start
.
Please make sure environment variables are properly configured for the API.
Runs the REST API server on process.env.port
or http://localhost:3001
.
Runs the REST API unit tests.
Builds the dist for the REST API.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Deploys the web app to Github pages.
-
First install NGINX on the server and run the API server.
-
Create a file
/etc/nginx/conf.d/faucet.conf
. -
Copy and Paste
nginx.conf
to thefaucet.conf
-
Run
systemctl restart nginx
. -
ping
faucet-api.diviproject.org to confirm it works!