Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several significant changes to the project, including adding new dependencies, updating the Dockerfile for better build and deployment processes, creating a new HTML file for the frontend, and implementing the frontend logic using Yew. The most important changes are highlighted below:
Dependency Additions:
Cargo.toml
foryew
,wasm-bindgen
, andweb-sys
to support the frontend web application. (Cargo.toml
Cargo.tomlR25-R27)Dockerfile Update:
Dockerfile
to use a multi-stage build process with Rust for building the project and Node.js for serving the built files. This change includes installingwasm-pack
and usinghttp-server
for serving the application. (Dockerfile
DockerfileL1-R35)Frontend Implementation:
index.html
file to serve as the entry point for the web application, including basic styling and a script to initialize and run the Yew app. (index.html
index.htmlR1-R61)src/frontend_web.rs
using Yew, including components for generating and validating product keys. (src/frontend_web.rs
src/frontend_web.rsR1-R92)Module Integration:
frontend_web
module into the main library by updatingsrc/lib.rs
to include and export therun_app
function. (src/lib.rs
src/lib.rsR19-R21)