-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
# Getting Started | ||
|
||
## Prerequisites | ||
|
||
- Linux or MacOS operating system, Windows users can use linux through WSL. | ||
- Install [git](https://chat.openai.com/share/71fb3ae6-80d7-478c-8a27-a36aaa5ba921) | ||
- Install [nix](https://nixos.org/download.html) | ||
|
||
## Building the website from scratch | ||
|
||
```bash | ||
git clone https://github.com/roc-lang/roc.git | ||
cd roc | ||
nix develop | ||
./www/build.sh | ||
# make the roc command available | ||
export PATH="$(pwd)/target/release/:$PATH" | ||
cd www/wip_new_website | ||
roc build.roc | ||
``` | ||
|
||
Open http://0.0.0.0:8080/wip in your browser. | ||
|
||
## After you've made a change | ||
|
||
In the terminal where `roc build.roc` is running: | ||
1. kill the server with Ctrl+C | ||
2. run `roc build.roc` | ||
3. refresh the page in your browser |