intrepidcanadian / alephium_hackathon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

****Leveraged the alephium template for the hackathon

Video of hackathon submission: https://www.loom.com/share/ef81afcb9a7b4df6bd152591af686d92?sid=015e3e39-6984-4a1d-a662-25a7f0c3acfc

Github: https://github.com/intrepidcanadian/alephium_hackathon

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.

Getting Started

Install

npm install

Start a local devnet for testing and development

npx @alephium/cli@latest devnet start

Deploy the token faucet contract

# 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

Run the development server

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.

Learn More

To learn more about smart contract development on Alephium, take a look at the following resources:

You can check out the Alephium GitHub repositories for more information - your feedback and contributions are welcome!

About


Languages

Language:JavaScript 53.9%Language:TypeScript 29.2%Language:CSS 8.6%Language:Rust 8.3%