Skip to content

Mubelotix/calendrier-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 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. This library needs to be compiled only once.

# 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 the library
wasm-pack build --target web

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. 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