Fluxkompensator can currently be used as a CAN (database) DBC viewer. It uses the can-dbc Rust crate for parsing DBC files via WASM. The DBC content is rendered using React.
Example Screenshot of J1939 dbc:
Right now the quickest way to give the Fluxkompensator a testride is running a docker container:
docker run -p 8080:80 marcelbuesing/fluxkompensator:latest
Open the app via http://localhost:8080 .
You may use the j1939.dbc or your own file to give it a try.
- Install wasm-pack
- Install npm
-
npm install
- Install JS dependencies -
npm run start
-- Serve the project locally for development athttp://localhost:8080
. -
npm run build
-- Bundle the project (in production mode).
For more details: WASM Template Tutorial: https://rustwasm.github.io/docs/wasm-pack/tutorials/index.html
The docker image contains WASM/JS production builds. The content is served via an nginx:alpine. Check the Dockerfile for details.
docker run -p 80:80 marcelbuesing/fluxkompensator:latest
docker build -t fluxkompensator .
docker run -p 80:80 fluxkompensator:latest