roc/www/wip_new_website
2023-11-09 20:53:44 -05:00
..
content Add James Birtles to new homepage 2023-11-09 20:53:36 -05:00
static Fix padding on Start Tutorial buttons 2023-11-09 20:53:44 -05:00
.gitignore Update .gitignore for new website 2023-11-02 19:56:19 -04:00
build-dev-local.sh Upse npm's http-server; it's much faster 2023-11-06 21:51:01 -05:00
InteractiveExample.roc Add sponsors to homepage and final tutorial link 2023-11-06 21:51:37 -05:00
main.roc Move larger example to right after Examples 2023-11-08 21:18:11 -05:00
optimize.sh Add optimize.sh script for website 2023-10-18 23:28:01 -04:00
README.md fix README 2023-10-19 16:23:01 +11:00

Getting Started

Prerequisites

  • Linux or MacOS operating system, Windows users can use linux through WSL.
  • Install git
  • Install nix

Building the website from scratch

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
bash build-dev-local.sh

Open http://0.0.0.0:8080/wip in your browser.

After you've made a change

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