Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.85 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.85 KB

Phet A La Tortrix

A Electric field simulator app

Made with VueJS and Rust

🔴 Live View: Here

🔴 Video on How to use it: Here

Made with <3 by

  • Flavio Galan
  • Daniel Rayo

🔴 Known Bugs:

  • Crash when reloading the page.
  • Truncated Cone function isn't defined when both radius are equal

Compiling the project

All developer dependencies are defined on the shell.nix file. To use this file just install Nix and then proceed with the command:

nix-shell

All terminal command blocks assume your on the base directory of this repo and that you are inside the developer session that the command above creates.

This command will read the nix file and setup everything that you'll need to develop the app. Everytime you wish to compile the app you'll need to enter this command to have access to all the dev-tools.

The first time you execute the command it may take a while because it needs to install node and rust.

Compiling the Backend

Run the following command to compile the backend:

cd backend
wasm-pack build --target web

This generates a pkg directory inside the backend directory. This folder represents the module to be used inside the javascript client. For more information you can watch this video

Running the Frontend

For testing and developing of the app frontend, run this command within /frontend folder.

yarn run dev

Then copy the URL showed in the terminal in a browser tab, and you are ready for start developing!