A bookmarklet to extend the truss simulator from JHU Engineering Innovation to send truss saves to a server.
This project is not affiliated with Johns Hopkins University or the original creator of the truss simulator in any way.
- python3 (not required if only the bookmarklet is being used)
Add an authentication key to the server's configuration in config.yml
.
key_sha256: "" # Insert your SHA256 authentication key hash here.
# Tip:
printf "<your key here>" | sha256sum
Start the sample backend.
cd github_proxy_server && python3 server.py
Warning: The server only has basic authentication and has not been tested for security. Be careful when exposing it publicly.
To enable version control, initialize a new repository inside github_proxy_server
.
Optionally, enable auto_commit
in the server's configuration file to automatically commit each save.
auto_commit: true
Add a remote to the repository from the previous section.
Optionally, enable auto_push
in the server's configuration file to automatically push each save.
auto_push: true # This will also enable auto_commit.
Ensure that authentication to the remote occurs automatically.
You can add remotes that aren't hosted on GitHub.
Follow the instructions on the releases page on GitHub.
Download a local copy of the truss simulator and augment it with the extension.
cd client_generator && ./generator.sh
Open client_generator/ei.jhu.edu/truss-simulator/index.html
in a web browser and proceed past the confirmation prompt.
All functions are avaiable under "Import & Export".
server address
: The backend URL. This will behttp://localhost:5000
if the sample backend is running locally.token
: The key configured prior to starting the server.upload / load endpoint
: Any special endpoints for uploading or downloading. Leave these empty when using the sample backend.
Save as file > enter a file name > upload to server.
Load from server > enter a file name > submit.