From 64ab5cb7f67695f4a1dd5aa0fb90538c8e015e6b Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Wed, 9 Aug 2023 15:57:10 +0200 Subject: [PATCH] added README for wip website --- www/wip_new_website/README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 www/wip_new_website/README.md diff --git a/www/wip_new_website/README.md b/www/wip_new_website/README.md new file mode 100644 index 00000000000..bef0305d167 --- /dev/null +++ b/www/wip_new_website/README.md @@ -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 \ No newline at end of file