This is a simple calculator app that demonstrates how to use generate a typescript SDK from a rust backend, using autogenerated openapi specs to do so.
The process is documented on this medium post.
- Rust
- poem
- poem-openapi
- Typescript
- openapi-typescript-codegen
- react
To run the backend, you need to have rust installed. Then you can run the following commands:
cd back-end
cargo runTo run the frontend, you need to have node and npm installed. Then you can run the following commands:
cd front-end
npm install
npm run make-sdk
npm startThis project is licensed under the MIT License - see the LICENSE.md file for details