Added documentation

pull/8/head
Benedikt Terhechte 2 years ago
parent 70502081dd
commit 600fa41c1c

@ -0,0 +1,31 @@
# Postsack Web
This is the WASM / Web version of Postsack. It uses fake email data to provide a web demo
so that interested parties can try out Postsack native / the app without having to install
it on their device.
## Building Postsack Web
First, you need to make sure all dependencies are installed:
``` sh
cd postsack-web
./setup_web.sh
```
Once this is done, building can be performed with a single script:
``` sh
./build_web.sh
```
## Testing
In order to simplify testing, `build_web.sh` will launch a browser on `localhost:8080`.
By default, `setup_web.sh` will install the `basic-http-server` so that you can run it
in the `web_demo` folder prior to running `build-web.sh`:
``` sh
cd web_demo
basic-http-server -a 127.0.0.1:8080 .
```

@ -0,0 +1,13 @@
# Generate Data
This folder contains generated fake data from [https://generatedata.com/generator](https://generatedata.com/generator).
This data is used to generate `../src/generated.rs` so that the WASM build is compiled with data to be
used in the web demo.
`generated.rs` can be rebuild via the following command:
``` sh
cd fake_data # make sure you're in this folder
python ./generate.py
```

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<head>
<title>egui An experimental immediate mode GUI written in Rust</title>
<title>Postsack Web</title>
<style>
html {
/* Remove touch delay: */
@ -86,4 +86,4 @@
</html>
<!-- Powered by egui: https://github.com/emilk/egui/ -->
<!-- Powered by egui: https://github.com/emilk/egui/ -->
Loading…
Cancel
Save