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.
11
+
> Next generation full-stack boilerplate for ink! smart contracts running on PolkaVM. Powered by Papi, ReactiveDOT, Pop CLI, and more.
16
12
17
-
The boilerplate rebuild features:
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)**
18
16
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).
25
-
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)
35
-
36
-
### 1. Run the frontend
17
+
## Quickstart ⚡
37
18
38
19
> [!IMPORTANT]
39
20
>
@@ -51,116 +32,25 @@ cd <project-name>
51
32
bun run dev
52
33
```
53
34
54
-
---
55
-
56
-
### 2. Build & deploy contracts on a local node
57
-
58
-
> [!IMPORTANT]
59
-
>
60
-
> - 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
88
-
89
-
Put your signers `ACCOUNT_URI` in `.env.<chain>` (e.g. `.env.pop`). By default, the `//Alice` account is used.
90
-
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
-
---
35
+
Learn more in the [documentation](https://docs.inkathon.xyz).
102
36
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).
37
+
## About the project
108
38
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! 🎉
39
+
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).
112
40
113
-
---
41
+
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.
114
42
115
-
### 4. Adding a new network
43
+
##What's new in v6?
116
44
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
-
```
45
+
The boilerplate has been completely rebuilt with:
130
46
131
-
3. Add the new network to the frontend under `frontend/src/lib/reactive-dot/config.ts`
47
+
-**Full ink! v6 support** with PolkaVM compatibility
-**New `create-inkathon-app` CLI** for setting up the boilerplate in seconds
53
+
-**New [documentation](https://docs.inkathon.xyz)** with educational resources & guides
132
54
133
-
## Hosting 📡
134
-
135
-
### Self-hosting
136
-
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`.
138
-
139
-
Try to build & run the Docker image locally:
140
-
141
-
```bash
142
-
# Executed from the root directory
143
-
docker build -t inkathon .
144
-
docker run -p 3000:3000 inkathon
145
-
```
146
-
147
-
### Vercel
148
-
149
-
The boilerplate is also ready to be deployed to Vercel using the `vercel.json` configuration file at the root of the project.
150
-
151
-
## To-Dos
152
-
153
-
> [!IMPORTANT]
154
-
>
155
-
> This is an alpha release. Use it at your own risk.
156
-
157
-
-[x] Network Selector
158
-
-[x] Show Balance in UI
159
-
-[x] Account/Address Switcher
160
-
-[x] Indicator & Action to map accounts
161
-
-[x] Faucet Direct Links
162
-
-[x] Dockerfile for self-hosting
163
-
-[x] Rust VSCode setup
164
-
-[x] Claude & Cursor Rules
165
-
-[x] New `create-inkathon-app` CLI for setting up the boilerplate
166
-
-[ ] Chain configuration via environment
55
+
> [!NOTE]
56
+
> The old ink! v5 compatible boilerplate is available on the [`v1` branch](https://github.com/scio-labs/inkathon/tree/v1).
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