Skip to content

NSB1974/faucet

 
 

Repository files navigation

Flow Testnet Faucet

Deployed at: https://testnet-faucet.onflow.org/

Usage

Create a new account

Use the Flow CLI to generate a new key pair:

# This command uses ECDSA_P256 and SHA3_256 by default
flow keys generate

Enter the resulting public key into the "Create Account" form, complete the captcha and submit.

Fund an account

Enter an existing account address into the "Fund Account" form, complete the captcha and submit.

Development

Create a dotenv file

⚠️ The SIGNER_PRIVATE_KEY value must match the FLOW_SERVICEPRIVATEKEY value in docker-compose.yml.

cp env.example .env

Start the Flow Emulator and Postgres database

docker-compose up -d

Install dependencies

npm install

Migrate and seed the database

npm run db-migrate-dev
npm run db-seed

Deploy contracts

⚠️ The accounts.emulator-account value in flow.json match the FLOW_SERVICEPRIVATEKEY value in docker-compose.yml.

npm run dev-deploy-contracts

Run the Next.js app

npm run dev

Run eslint, typescript checks, tests

npm run check

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.2%
  • Cadence 16.2%
  • CSS 4.0%
  • JavaScript 1.6%