Skip to content

david-wallace-croft/dioxus-prototype

Repository files navigation

Dioxus Prototype

MIT licensed

  • My first Dioxus application
  • Makes a Content Delivery Network (CDN)-compatible static HTML distribution
    • Includes static prerendering with client-side hydration

Online Demonstration

CroftSoft Dioxus Prototype 2023-10-20

Tutorial

Utilities Installation

npm scripts

  • npm start
    • Used during development
    • Builds, watches, and serves with hot reloading
    • Automatically opens a browser window
  • npm run clean
    • Deletes the build output and distribution directories
  • npm run build
    • Builds a release version with static site generation (SSG)
  • npm run merge
    • Makes the distribution directory dist/
    • Merges the release build into dist/
    • Merges the generated SSG files into dist/
    • Merges the static files in merge/ into dist/
  • npm run dist
    • Runs the clean, build, and dist scripts
    • Used to generate an SSG distribution in the dist/ directory
    • The dist/ files are hosted on a Content Delivery Network (CDN)
  • npm run serve
    • Serves the files in the distribution directory dist/
    • Automatically opens a browser window
  • npm test
    • Runs the dist and serve scripts
    • Used to test the SSG distribution prior to hosting on a CDN
  • npm run format
    • Runs the utility prettier to format the generated SSG files

TODO

  • Restore the prettier configuration
  • Bump the version number

History

  • 2022-08-21: Initial release
  • 2024-12-30: Updated from Dioxus v0.4 to v0.6

About

Rust-based Dioxus web app example

Topics

Resources

License

Stars

Watchers

Forks

Languages