forked from dfinity/portal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sampleItems.ts
271 lines (269 loc) · 9.4 KB
/
sampleItems.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
export type SampleItem = {
index: number;
title: string;
image?: string;
domains: SampleDomain[];
level: SampleLevel;
body: string;
languages: SampleLanguage[];
contentType: SampleContentType[];
links: {
[key: string]:
| string
| string[]
| {
text: string;
to: string;
};
};
};
export type SampleLanguage =
| "motoko"
| "rust"
| "javascript"
| "typescript"
| "other";
export type SampleLevel = "beginner" | "intermediate" | "advanced";
export type SampleDomain =
| "Asynchronous DeFi"
| "Global"
| "Website"
| "Metaverse and NFTs"
| "GameFi"
| "SocialFi"
| "Blue Sky"
| "Public Good / Social Impact";
export type SampleContentType =
| "code samples"
| "documentation"
| "live demos"
| "tutorial"
| "videos"
| "community repo";
export const sampleItems: SampleItem[] = [
{
index: 0,
title: "Bitcoin",
image: require("../../../static/img/samples/bitcoin.png").default,
domains: ["Asynchronous DeFi"],
languages: ["motoko", "rust"],
level: "advanced",
contentType: ["code samples", "documentation", "live demos", "tutorial"],
body: "Deploy a canister on the Internet Computer that can send and receive Bitcoin.",
links: {
action: {
text: "Get code",
to: "https://github.com/dfinity/examples/tree/master/motoko/basic_bitcoin",
},
motoko:
"https://github.com/dfinity/examples/tree/master/motoko/basic_bitcoin",
rust: "https://github.com/dfinity/examples/tree/master/rust/basic_bitcoin",
docs: "/docs/current/samples/deploying-your-first-bitcoin-dapp",
},
},
{
index: 1,
title: "Threshold ECDSA",
image: require("../../../static/img/samples/t-ecdsa.png").default,
domains: ["Global"],
languages: ["motoko", "rust"],
level: "advanced",
contentType: ["code samples", "documentation", "live demos", "tutorial"],
body: "Build a threshold ECDSA test key on a subnet.",
links: {
action: {
text: "Get code",
to: "https://github.com/dfinity/examples/tree/master/motoko/threshold-ecdsa",
},
motoko:
"https://github.com/dfinity/examples/tree/master/motoko/threshold-ecdsa",
rust: "https://github.com/dfinity/examples/tree/master/rust/threshold-ecdsa",
docs: "/docs/current/samples/t-ecdsa-sample",
},
},
{
index: 2,
title: "Canister HTTPS Outcalls",
image: require("../../../static/img/samples/https-outcalls.jpeg").default,
domains: ["Global", "Website"],
languages: ["rust", "javascript"],
level: "intermediate",
contentType: ["code samples", "documentation"],
body: "Demonstrates how to build a dapp with canister outgoing HTTP calls.",
links: {
action: {
text: "Get Code",
to: "https://github.com/dfinity/examples/tree/master/rust/exchange_rate",
},
motoko:
"https://github.com/dfinity/examples/tree/master/motoko/exchange_rate",
docs: "/docs/current/samples/http-requests-exchange-rates",
rust: "https://github.com/dfinity/examples/tree/master/rust/exchange_rate",
},
},
{
index: 3,
title: "Hello World",
image: require("../../../static/img/samples/helloWorld.png").default,
domains: ["Website"],
languages: ["motoko", "rust", "javascript"],
level: "beginner",
contentType: ["code samples", "documentation", "live demos"],
body: "Deploy a dead simple dapp using two canisters serving a web page.",
links: {
action: {
text: "Get code",
to: "https://github.com/dfinity/examples/tree/master/motoko/hello",
},
motoko: "https://github.com/dfinity/examples/tree/master/motoko/hello",
rust: "https://github.com/dfinity/examples/tree/master/rust/hello",
livePreview: "https://6lqbm-ryaaa-aaaai-qibsa-cai.ic0.app/",
docs: "/docs/current/samples/hello",
},
},
{
index: 4,
title: "Static Website",
image: require("../../../static/img/samples/staticWebsite.png").default,
domains: ["Website", "Global"],
languages: ["motoko", "rust", "javascript"],
level: "beginner",
contentType: ["documentation", "videos", "tutorial"],
body: "Quickly set up a static website structure, add content and basic styling, and deploy on the IC.",
links: {
action: { text: "Docs", to: "/samples/host-a-website" },
docs: "/docs/current/samples/host-a-website",
youtube: "https://www.youtube.com/watch?v=JAQ1dkFvfPI",
},
},
{
index: 5,
title: "Basic Dex",
image: require("../../../static/img/samples/basicDex.png").default,
domains: ["Asynchronous DeFi", "Website"],
languages: ["motoko", "rust", "javascript"],
level: "intermediate",
contentType: ["code samples", "documentation", "videos", "live demos", "tutorial"],
body: "Build dapp to enable DeFi applications on the IC.",
links: {
action: {
text: "Get Code",
to: "https://github.com/dfinity/examples/tree/master/motoko/defi",
},
motoko: "https://github.com/dfinity/examples/tree/master/motoko/defi",
rust: "https://github.com/dfinity/examples/tree/master/rust/defi",
livePreview: "https://gzz56-daaaa-aaaal-qai2a-cai.ic0.app/",
docs: "/docs/current/samples/dex",
youtube: "https://youtu.be/fLbaOmH24Gs",
},
},
{
index: 6,
title: "NFT Minting",
image: require("../../../static/img/samples/nftMinting.png").default,
domains: ["Metaverse and NFTs", "GameFi"],
languages: ["rust"],
level: "intermediate",
contentType: ["code samples", "documentation", "tutorial", "videos"],
body: "Create a user generated NFT and share it. This dapp uses the DIP721 NFT standard.",
links: {
rust: "https://github.com/dfinity/examples/tree/master/rust/dip721-nft-container",
docs: "/docs/current/samples/nft",
youtube: "https://youtu.be/1po3udDADp4",
},
},
{
index: 7,
title: "Basic DAO",
image: require("../../../static/img/samples/basicDAO.png").default,
domains: ["Global", "Asynchronous DeFi"],
languages: ["motoko", "rust"],
level: "intermediate",
contentType: ["code samples", "documentation", "tutorial", "videos"],
body: "Dapp initializes a set of accounts and corresponding tokens as well as enables proposals for communal votes.",
links: {
motoko:
"https://github.com/dfinity/examples/tree/master/motoko/basic_dao",
rust: "https://github.com/dfinity/examples/tree/master/rust/basic_dao",
docs: "/docs/current/samples/dao",
youtube: "https://youtu.be/3IcYlieA-EE",
},
},
{
index: 8,
title: "Encrypted note-taking",
image: require("../../../static/img/samples/encryptedNoteTaking.png")
.default,
domains: ["Website"],
languages: ["motoko", "rust", "javascript"],
level: "advanced",
contentType: ["code samples", "documentation", "videos", "live demos", "tutorial"],
body: "Create, access and modify confidential notes from multiple devices using Internet Identity and end-to-end encryption.",
links: {
motoko:
"https://github.com/dfinity/examples/tree/master/motoko/encrypted-notes-dapp/src/encrypted_notes_motoko",
rust: "https://github.com/dfinity/examples/tree/master/motoko/encrypted-notes-dapp/src/encrypted_notes_rust",
livePreview: "https://cvhrw-2yaaa-aaaaj-aaiqa-cai.ic0.app/",
docs: "/docs/current/samples/encrypted-notes",
youtube: "https://youtu.be/DZQmtPSxvbs",
},
},
{
index: 9,
title: "Token transfer",
image: require("../../../static/img/samples/tokenTransfer.png").default,
domains: ["Global", "Asynchronous DeFi"],
languages: ["motoko", "rust"],
level: "advanced",
contentType: ["code samples", "documentation"],
body: "Create a dapp that can transfer tokens to its most active users.",
links: {
motoko:
"https://github.com/dfinity/examples/tree/master/motoko/ledger-transfer",
rust: "https://github.com/dfinity/examples/tree/master/rust/tokens_transfer",
docs: "/docs/current/samples/token-transfer",
},
},
{
index: 10,
title: "Actor reference",
image: require("../../../static/img/samples/actorReference.png").default,
domains: ["Website"],
languages: ["motoko"],
level: "advanced",
contentType: ["code samples", "documentation"],
body: "Learn how the IC management canister functions as an actor (reference).",
links: {
motoko:
"https://github.com/dfinity/examples/tree/master/motoko/actor_reference",
},
},
{
index: 11,
title: "WebGL",
image: require("../../../static/img/samples/webgl.png").default,
domains: ["GameFi", "Website", "Global"],
languages: ["motoko", "rust", "javascript"],
level: "beginner",
contentType: ["documentation"],
body: "Demonstrates how to deploy a web game on the IC.",
links: {
docs: "/docs/current/samples/host-a-webgame",
},
},
{
index: 12,
title: "NNS Integration",
image: require("../../../static/img/samples/nns-proposal.jpg").default,
domains: ["Website"],
languages: ["motoko", "javascript"],
level: "intermediate",
contentType: ["code samples", "documentation", "live demos"],
body: "Learn how to connect a canister to a neuron, to make a dapp that can submit proposals to the NNS.",
links: {
motoko:
"https://github.com/InternetComputerOG/NNS-Proposal-Submission-Dapp",
livePreview: "https://uf2fn-liaaa-aaaal-abeba-cai.ic0.app/",
},
},
];