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
Copy file name to clipboardexpand all lines: docs/src/getting-started/quick-starts/hw-code.md
+28-22
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# Hello World (Code)
2
2
3
-
This guide walks you through the a quick way to get a static HTML, CSS and JavaScript webpage on to the permaweb using a few lines of code and a [command-line interface (CLI)](./hw-cli.md).
3
+
This guide walks you through a quick way to get a static HTML, CSS and JavaScript webpage on to the permaweb using a few lines of code and a [command-line interface (CLI)](./hw-cli.md).
4
4
5
5
## Requirements
6
6
7
-
-[NodeJS](https://nodejs.org) LTS or greater
8
-
-Basic knowledge of HTML, CSS and JavaScript
9
-
-A text editor (VS Code, Sublime, or similar)
7
+
-[NodeJS](https://nodejs.org) LTS or greater
8
+
- Basic knowledge of HTML, CSS and JavaScript
9
+
- A text editor (VS Code, Sublime, or similar)
10
10
11
11
## Description
12
12
@@ -17,7 +17,7 @@ Using a terminal/console window create a new folder called `hello-world`.
17
17
```sh
18
18
cd hello-world
19
19
npm init -y
20
-
npm install arweave @irys/sdk
20
+
npm i -g @irys/sdk
21
21
mkdir src &&cd src
22
22
touch index.js index.html style.css
23
23
```
@@ -30,6 +30,10 @@ Next open your text editor and import the `hello-world` directory.
The wallet.json file must be in the root of the `hello-world` folder and not inside of your `src` folder.
35
+
:::
36
+
33
37
## Create a webpage
34
38
35
39
This webpage is using basic HTML, CSS and JavaScript to create a styled button that when you click it the header text changes color. Once finished, we will be using Irys and our previously generated wallet to deploy a fully functioning, static and permanent webpage to Arweave.
@@ -44,19 +48,19 @@ Paste the code from the following code blocks into their files:
0 commit comments