Skip to content

Files

Latest commit

e05d00c · Feb 10, 2020

History

History
This branch is 3469 commits behind OriginProtocol/origin:master.

faucet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 19, 2019
Apr 22, 2019
Oct 17, 2019
Mar 19, 2019
Mar 19, 2019
Mar 19, 2019
Apr 29, 2019
Feb 10, 2020

Our Origin testnet faucet provides OGN for developers on TestNets. The faucet is deployed at faucet.staging.originprotocol.com

Code structure

  • faucet: Web application that implements a faucet for Origin tokens.
  • lib: Common code.
  • test: Unit tests.

Using the faucet in local environment

You can start the faucet using either docker or lerna.

Lerna

Make sure to have Postgres installed and running locally.

Run migration files to create the DB tables.

    export DATABASE_URL=postgres://origin:origin@localhost/origin
    lerna run migrate --scope origin-faucet 

Bootstrap lerna

    lerna bootstrap

Start a local blockchain

    lerna run start --scope origin --stream

Start the faucet server

    lerna run start --scope origin-faucet --stream

Access the faucet

The server should start and you can point your browser to http://localhost:5000 to access the faucet web UI.