Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web frontend using WASM added #1

Closed
wants to merge 1 commit into from

Conversation

greenlonk
Copy link

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:

  • Added new dependencies in Cargo.toml for yew, wasm-bindgen, and web-sys to support the frontend web application. (Cargo.toml Cargo.tomlR25-R27)

Dockerfile Update:

  • Updated the 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 installing wasm-pack and using http-server for serving the application. (Dockerfile DockerfileL1-R35)

Frontend Implementation:

  • Created a new 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)
  • Implemented the frontend logic in 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:

  • Integrated the new frontend_web module into the main library by updating src/lib.rs to include and export the run_app function. (src/lib.rs src/lib.rsR19-R21)

@nandolawson
Copy link
Owner

Pull request is closed because a frontend is being worked on elsewhere and remains separate from this library.

@nandolawson nandolawson closed this Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants