https://github.com/onflow/faucet
https://github.com/onflow/faucet
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/onflow/faucet
- Owner: onflow
- License: apache-2.0
- Created: 2021-03-10T07:11:59.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-20T17:07:59.000Z (over 1 year ago)
- Last Synced: 2025-01-09T10:03:52.380Z (over 1 year ago)
- Language: Cadence
- Homepage: https://testnet-faucet.onflow.org
- Size: 1.9 MB
- Stars: 5
- Watchers: 31
- Forks: 9
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
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
```