KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
forest-server
★ 19
Open GitHub ↗
A server for the forester tool
Download README (.md)
Explore Similar Repositories
mmPoint
:
[BMVC 2023] mmPoint: Dense Human Point Cloud Generation from mmWave
NOVA_AI
:
No description available.
snakemake_fa23
:
CCB Skills Seminar (Fall 2023) - snakemake
nostr-media
:
Nostr Media Uploads for WordPress
sky-take-out
:
黑马java的苍穹外卖(用爱发电:阿里oss、百度地图、小程序相关key)
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
forest-server
?
Download (.md)
# Forest Server A live-updating development server for [forester](https://git.sr.ht/~jonsterling/ocaml-forester). ## Usage To make use of the live-reload feature, you will need to add the following javascript snippet to the root template in `forest.xsl`: ```html ... <script type="module" src="forester.js"></script> <script src="reload.js"></script> ``` Run `forest watch -- "$args"`, where `$args` are the arguments you want to pass to `forester`. For example: `forest watch -- "build --dev --root index trees/"` ## Installation and Setup `cargo install forest-server` Requires `forester` to be available in `$PATH`. To install using Nix: ```nix { inputs = { forester.url = "sourcehut:~jonsterling/ocaml-forester"; forest-server.url = "github:kentookura/forest-server"; forester.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = inputs@{ self, forester, forest-server, nixpkgs }: let system = "x86_64-linux"; # Only works on linux so far, PRs welcome! pkgs = import nixpkgs { inherit system inputs; }; in { devShells.${system}.default = pkgs.mkShell { buildInputs = [ forester.packages.${system}.default forest-server.packages.${system}.default ]; }; }; } ``` ## Why Rust? `forester` is written in ocaml, so why rust? [See this discussion](https://lists.sr.ht/~jonsterling/forester-discuss/%3CCADB3NkmpLxEpoTJqv7zNoh5s8+4cTVMJJt7sKR-EwHYc_ULSqw%40mail.gmail.com%3E#%3CCADB3NkkCBB7HKdM=1kzxtJRt9YBwkY_RNHhpzOTo8uuk7crC6A@mail.gmail.com%3E). Additionally, I have found compiling ffi code really challenging on nixos. I am open to deprecating this program if a good ocaml solution is possible. However, I suspect that `forest-server` is runnable on windows, so It would be nice that when `forester` becomes windows-compatible, the native ocaml file watching solution also works. ### TODO - Add a nice overlay to the UI like in vite. ## Contributing Contributions are welcome! Feel free to open a PR.