You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Next generation full-stack boilerplate for ink! smart contracts running on PolkaVM. Powered by Papi, ReactiveDOT, Pop CLI, and more. – Perfect for kickstarting building hackathon projects.
10
-
11
-
**Join the discussion in our [Telegram Group](https://t.me/inkathon)** 💬
12
-
13
-
## About 📖
14
-
15
-
The inkathon boilerplate offers a complete setup for developing full-stack dApps on Polkadot with ink! smart contracts and Next.js. It now shines in new glory with full ink! v6 support powered by Papi, ReactiveDOT, Pop CLI, and more.
16
-
17
-
The boilerplate rebuild features:
18
-
19
-
- Full ink! v6 support & type-safety
20
-
- Revamped build, deployment, and address management scripts
- New `create-inkathon-app` CLI for setting up the boilerplate in seconds
23
-
24
-
The inkathon boilerplate is almost as old as ink! itself. With accumulated over 200 stars, more than 250 public projects depending on it and the most active [ink! Telegram group](https://t.me/inkathon).
11
+
> Next generation full-stack boilerplate for ink! smart contracts running on PolkaVM. Powered by Papi, ReactiveDOT, Pop CLI, and more.
25
12
26
-
> [!NOTE]
27
-
> The old ink! v5 compatible boilerplate is available on the [`v1` branch](https://github.com/scio-labs/inkathon/tree/v1).
28
-
29
-
## Getting Started 🚀
30
-
31
-
-[1. Run the frontend](#1-run-the-frontend)
32
-
-[2. Build & deploy contracts on a local node](#2-build--deploy-contracts-on-a-local-node)
33
-
-[3. Connect the frontend to the local node](#3-connect-the-frontend-to-the-local-node)
34
-
-[4. Adding a new network](#4-adding-a-new-network)
13
+
- 🤖 **Check out the [live demo](https://inkathon.xyz)**
14
+
- 📖 **Explore our new [documentation](https://docs.inkathon.xyz)**
15
+
- 💬 **Join the discussion on [Telegram](https://t.me/inkathon)**
35
16
36
-
### 1. Run the frontend
17
+
##Quickstart ⚡
37
18
38
19
> [!IMPORTANT]
39
20
>
40
-
> - Setup Node.js v22 (recommended via [nvm](https://github.com/nvm-sh/nvm))
21
+
> - Setup Node.js v20 or v22 (recommended via [nvm](https://github.com/nvm-sh/nvm))
41
22
> - Install [Bun](https://bun.sh/)
42
23
43
24
Use the new `create-inkathon-app` CLI to set up the boilerplate:
> - Setup your environment with Pop CLI: [Guide](https://learn.onpop.io/welcome/install-pop-cli)
61
-
> - Install `cargo-contract` with `cargo install cargo-contract@6.0.0-alpha --locked`
62
-
> - Install `ink-node` by [downloading it's binary](https://github.com/use-ink/ink-node/releases)
63
-
> - Make `ink-node` available globally by moving it to `/usr/local/bin` with `sudo mv ink-node /usr/local/bin/`
64
-
65
-
1. Add your contract (or just continue with the provided `flipper` example)
66
-
2. Build your contract
67
-
68
-
```bash
69
-
# Executed from the /contracts directory
70
-
bun run build
71
-
```
72
-
73
-
3. Run the local `ink-node` in the background
74
-
75
-
```bash
76
-
# Executed from the /contracts directory
77
-
bun run node
78
-
```
79
-
80
-
4. (Re-)generate PAPI types
81
-
82
-
```bash
83
-
# Executed from the /contracts directory
84
-
bun run codegen
85
-
```
86
-
87
-
5. Deploy your contract
34
+
Learn more in our new [documentation](https://docs.inkathon.xyz).
88
35
89
-
Put your signers `ACCOUNT_URI` in `.env.<chain>` (e.g. `.env.pop`). By default, the `//Alice` account is used.
36
+
## About the project
90
37
91
-
```bash
92
-
# Executed from the /contracts directory
93
-
# If `CHAIN` is not set, it will default to `dev`
94
-
CHAIN=dev bun run deploy
95
-
```
96
-
97
-
> [!NOTE]
98
-
>
99
-
> The `deploy.sh` script triggered by `bun run deploy` will automatically export the deployed contract addresses under `/contracts/deployments/<contract>/<chain>.ts`. These files are used to be cross-imported in the frontend in `frontend/src/lib/inkathon/deployments.ts`.
100
-
101
-
---
102
-
103
-
### 3. Connect the frontend to the local node
104
-
105
-
> [!NOTE]
106
-
>
107
-
> Tip: You can also run Next.js and `ink-node` in parallel via `bun run dev-and-node` (executed from the project root).
108
-
109
-
1. Go to `frontend/src/lib/reactive-dot/config.ts` and uncomment the `dev` chain
110
-
2. Go to `frontend/src/lib/inkathon/deployments.ts` and uncomment the `dev` address imports & exports
111
-
3. That's it! 🎉
112
-
113
-
---
114
-
115
-
### 4. Adding a new network
116
-
117
-
1. (Re-)generate PAPI types
118
-
119
-
```bash
120
-
# Executed from the /contracts directory
121
-
bunx papi add -w <websocket-url><chain-name>
122
-
```
123
-
124
-
2. (Re-)deploy your contract
125
-
126
-
```bash
127
-
# Executed from the /contracts directory
128
-
CHAIN=<chain-name> bun run deploy
129
-
```
130
-
131
-
3. Add the new network to the frontend under `frontend/src/lib/reactive-dot/config.ts`
132
-
133
-
## Hosting 📡
38
+
The inkathon boilerplate is almost as old as ink! itself. With over 200 stars, more than 250 public projects depending on it, and the most active [ink! Telegram group](https://t.me/inkathon).
134
39
135
-
### Self-hosting
40
+
It offers a complete setup for developing full-stack dApps on Polkadot with ink! smart contracts and Next.js and now shines in new glory with full ink! v6 support. Powered by Papi, ReactiveDOT, Pop CLI, and more.
136
41
137
-
This new version of the boilerplates treats self-hosting as a first-class citizen. The boilerplate comes with a state-of-the-art Dockerfile configuration for Next.js self-hosting. We even have a self-hosted version of inkathon.xyz running under `https://inkathon.scio.xyz`.
42
+
## New Features in v6
138
43
139
-
Try to build & run the Docker image locally:
44
+
The boilerplate has been completely rebuilt with:
140
45
141
-
```bash
142
-
# Executed from the root directory
143
-
docker build -t inkathon .
144
-
docker run -p 3000:3000 inkathon
145
-
```
46
+
-**Full ink! v6 support** with PolkaVM compatibility
description: Kickstart your ink! hackathon projects and production dApps.
4
+
---
5
+
6
+
## The Project
7
+
8
+
The inkathon boilerplate is almost as old as ink! itself. With over 200 stars, more than 250 public projects depending on it, and the most active [ink! Telegram group](https://t.me/inkathon).
9
+
10
+
It offers a complete setup for developing full-stack dApps on Polkadot with ink! smart contracts and Next.js and now shines in new glory with full ink! v6 support. Powered by Papi, ReactiveDOT, Pop CLI, and more.
11
+
12
+
## New Features in v6
13
+
14
+
The boilerplate has been completely rebuilt with:
15
+
16
+
-**Full ink! v6 support** with PolkaVM compatibility
0 commit comments