An open API service indexing awesome lists of open source software.

https://github.com/onflow/faucet


https://github.com/onflow/faucet

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# Flow Testnet Faucet

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

## Usage

### Create a new account

Use the [Flow CLI](https://developers.flow.com/tooling/flow-cli) to generate a new key pair:

```sh
# 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`.

```sh
cp env.example .env
```

### Start the Flow Emulator and Postgres database

```sh
docker-compose up -d
```

### Install dependencies

```sh
npm install
```

### Migrate and seed the database

```sh
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`.

```sh
npm run dev-deploy-contracts
```

### Run the Next.js app

```sh
npm run dev
```

### Run eslint, typescript checks, tests

```sh
npm run check
```