Files
modeling-app/README.md

49 lines
1.8 KiB
Markdown
Raw Normal View History

2023-01-12 11:49:01 +11:00
## Kurt demo project
2022-11-12 13:11:54 +11:00
2023-03-04 06:07:04 +11:00
live at [untitled-app.kittycad.io](https://untitled-app.kittycad.io/)
2023-01-12 11:55:58 +11:00
2023-01-12 11:49:01 +11:00
Not sure what to call this, it's both a language/interpreter and a UI that uses the language as the source of truth model the user build with direct-manipulation with the UI.
2022-11-12 13:11:54 +11:00
2023-01-12 11:49:01 +11:00
It might make sense to split this repo up at some point, but not the lang and the UI are all togther in a react app
2022-11-12 13:11:54 +11:00
2023-01-12 11:49:01 +11:00
Originally Presented on 10/01/2023
2022-11-12 13:11:54 +11:00
2023-03-22 06:58:25 +11:00
[Video](https://drive.google.com/file/d/183_wjqGdzZ8EEZXSqZ3eDcJocYPCyOdC/view?pli=1)
2023-01-22 07:46:53 +11:00
[demo-slides.pdf](https://github.com/KittyCAD/Eng/files/10398178/demo.pdf)
## To run, there are a couple steps since we're compiling rust to WASM, you'll need to have rust stuff installed, then
2022-11-12 13:11:54 +11:00
2023-01-12 11:49:01 +11:00
```
yarn install
```
then
```
yarn build:wasm
```
That will build the WASM binary and put in the `public` dir (though gitignored)
finally
```
2023-01-12 11:49:01 +11:00
yarn start
```
2022-11-12 13:11:54 +11:00
and `yarn test` you would have need to have built the WASM previously. The tests need to download the binary from a server, so if you've already got `yarn start` running, that will work, otherwise running
```
yarn simpleserver
```
in one terminal
and
```
yarn test
```
in another.
If you want to edit the rust files, you can cd into `src/wasm-lib` and then use the usual rust commands, `cargo build`, `cargo test`, when you want to bring the changes back to the web-app, a fresh `yarn build:wasm` in the root will be needed.
Worth noting that the integration of the WASM into this project is very hacky because I'm really pushing create-react-app further than what's practical, but focusing on features atm rather than the setup.
2022-11-12 13:11:54 +11:00
2023-01-12 11:49:01 +11:00
<img width="1232" alt="image" src="https://user-images.githubusercontent.com/29681384/211947063-46164bb4-7bdd-45cb-9a76-2f40c71a24aa.png">
2022-11-12 13:11:54 +11:00
2023-01-12 11:49:01 +11:00
<img width="1232" alt="image (1)" src="https://user-images.githubusercontent.com/29681384/211947073-e76b4933-bef5-4636-bc4d-e930ac8e290f.png">