1 unstable release
0.1.0 | Jan 30, 2021 |
---|
#12 in #zettelkasten
47KB
1K
SLoC
Eingang
Minimal note taking application via WASM & Rust.
Stages
- Interactive session example
- Temporary storage of data (across reloads)
- Temporary storage of data (across sessions)
- Use common crate for models between backend and frontend
- Enable persistent storage of data (on disk) for Backend API
- Use safe/load from persistent storage via Backend API
Todo
- Implement similar structure like
todo
example here.
Usage
First, generate the WASM bindings and save them in ./static/
.
Afterwards, serve the files using any web server e.g. miniserve
.
- Build WASM bindings
make build # or wasm-pack build --target web --out-name wasm --out-dir ../static ./frontend/
- Serve files
make serve # or miniserve ./static --index index.html
The default make
command is make serve
. Erase all created files via following command:
make clean # or rm -f ./static/wasm* ./static/package.json
lib.rs
:
Library for the backend system of the eingang
tool. Further, only used for
declaration of modules and configuration settings.
Dependencies
~24–36MB
~640K SLoC