roc/www/wip_new_website
2023-11-05 21:00:33 -05:00
..
content Use a svg arrow for the repl 2023-11-05 19:55:55 -05:00
static Scoot mobile logo a bit 2023-11-05 21:00:33 -05:00
.gitignore Update .gitignore for new website 2023-11-02 19:56:19 -04:00
build-dev-local.sh Add --cors to simple-http-server 2023-11-02 23:17:20 -04:00
InteractiveExample.roc Fix some HTML validation errors 2023-11-02 21:17:16 -04:00
main.roc Fix some more font stuff 2023-11-02 23:35:36 -04: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