This is a Alephium template project for the Next.js framework, it is bootstrapped with the following command:
npx @alephium/cli init $project-name --template nextjs
This template project demonstrates how to implement a simple token faucet and expose it with a Web UI using Next.js.
npm install
npx @alephium/cli@latest devnet start
# In this case devnet
npx @alephium/cli deploy -n devnet
This will compile and deploy the token faucet contracts to all of the 4 groups on devnet.
Before deployment, you might want to just compile and test the contracts first:
# Compile
npx @alephium/cli compile
# Test
npx @alephium/cli test
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the token faucet application.
Download the Alephium Extension Wallet to interact with the application.
To learn more about smart contract development on Alephium, take a look at the following resources:
- Alephium Web3 SDK Guide - Learn about Alephium Web3 SDK
- Ralph Language - A guide to the Ralph programming language
You can check out the Alephium GitHub repositories for more information - your feedback and contributions are welcome!