Originally created this project as for an assignment for MART 380 in college. Rewritten now to have more effects (ascii / binary dithering) as well as to use Web Assembly for improved performance.
Built using Vue 2
A prereq to run this project locally is the installation of both wasm-pack
and the Rust compiler in order to be able to compile the Rust script as a wasm module that can be imported locally via npm.
Docs on installing Rust are available here
Docs on wasm-pack
are available here
Once wasm-pack
is installed you can run npm ci
from the project root directory to install dependencies. Notice in the package.json
the jakes-photo-booth
dependency references a local folder. This is where the compiled WASM module lives.
Now you can run npm run dev
to start the local dev server and navigate to https://localhost:8080
to see the site.
The actual source for the WASM module lives in the src/lib.rs
script. Any changes made to the file will result in a recompile of the module automatically if you are running the dev
script.
npm run dev
: Compiles the WASM module and hot-reloads for developmentnpm run dev:vue
: Runs local Vue development servernpm run dev:rust
: Compiles the WASM module and watches for changesnpm run build
: Compiles and minifies for productionnpm run build:rust
: Just compiles the WASM modulenpm run serve:prod
: Runs a local server hosting the static site. Requires Python 3npm run lint
: Lints and fixes files