roc/www/README.md

38 lines
900 B
Markdown
Raw Normal View History

2022-09-08 08:26:48 +03:00
# www.roc-lang.org
2023-11-19 08:29:47 +03:00
## 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)
2024-01-31 16:01:22 +03:00
- Install [nix](https://github.com/roc-lang/roc/blob/main/BUILDING_FROM_SOURCE.md#installing-nix)
2023-11-19 08:29:47 +03:00
## Building the website from scratch
```bash
2023-11-19 08:29:47 +03:00
git clone https://github.com/roc-lang/roc.git
cd roc
nix develop
./www/build.sh
2023-11-19 08:29:47 +03:00
# make the roc command available
export PATH="$(pwd)/target/release/:$PATH"
bash ./www/build-dev-local.sh
2023-11-19 08:29:47 +03:00
```
Open http://0.0.0.0:8080 in your browser.
## After you've made a change locally
In the terminal where the web server is running:
1. kill the server with Ctrl+C
2. re-run the build script
3. refresh the page in your browser
To view the website after you've made a change, execute:
```bash
bash build-dev-local.sh
```
2023-11-19 08:29:47 +03:00
Open http://0.0.0.0:8080 in your browser.