Skip to content

web search done right

update setup steps

Mikkel Denkere649053260c3
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 10f6bcbf..1eeabf5d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -27,8 +27,9 @@ The process is simple and fast. Upon your first pull request, you will be prompt
* Install rust by following the steps outlined [here](https://www.rust-lang.org/tools/install)
* Install the beta toolchain `rustup toolchain install beta`
* Set beta as default `rustup default beta`
-* Install clang
+* Install clang and npm
* Update ulimit. RocksDB tends to exceed the max number of allowed open files, so you will have to run `ulimit -n 10240` to increase the allowed max number of open files.
+* Build the frontend `cd frontend && npm install && npm run build`
* (Optional) Install cargo-watch by running `cargo install cargo-watch`. This makes frontend development easier.
* (Optional) Install just by running `cargo install just`. This allows you to run the scripts in the Justfile. A Justfile is basically a simple Makefile, so this is just for convenience.
diff --git a/justfile b/justfile
index d6a4ae07..1c52da5d 100644
--- a/justfile
+++ b/justfile
@@ -31,6 +31,7 @@
cd frontend; npm run dev
@local:
+ cd frontend; npm install
rm -rf data/index/
cargo run --release -- indexer local configs/indexer/local.toml
mv data/index/CC-MAIN-*/* data/index/