Skip to content

Mubelotix/calendrier-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calendrier-Web

Website showing the current date in the French Republican calendar, along with the current decimal time.

Building the library

While this project is written entirely in JavaScript, it uses my Rust library for date calculations. The wrapper now ships in two variants: the default build and a solar build.

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Install the WebAssembly target
rustup target add wasm32-unknown-unknown

# Install wasm-pack
cargo install wasm-pack

# Build both wrapper variants
cd wrapper
./build.sh

Running

You just need to run a local web server in ./static. For example, using Python:

cd static
python3 -m http.server

There are symlinks in the static folder that point to the compiled files in ./wrapper/pkg and ./wrapper/pkg-solar. The default site uses calendrier_web_bg.wasm, and calendrier_web_solar_bg.wasm is exposed alongside it for comparison. Your web server must support serving symlinks (just use python).

About

Website showing the current date in the french revolutionary calendar, along with the current decimal time

Topics

Resources

Stars

Watchers

Forks

Contributors