{"id":13806972,"url":"https://github.com/jetli/create-yew-app","last_synced_at":"2025-04-13T04:58:55.898Z","repository":{"id":37580291,"uuid":"229477584","full_name":"jetli/create-yew-app","owner":"jetli","description":"Set up a modern Yew web app by running one command. ","archived":false,"fork":false,"pushed_at":"2024-10-12T15:37:41.000Z","size":5286,"stargazers_count":165,"open_issues_count":3,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T04:58:49.097Z","etag":null,"topics":["create-yew-app","rust","wasm","wasm-bindgen","wasm-pack","webassembly","yew"],"latest_commit_sha":null,"homepage":"https://jetli.github.io/create-yew-app/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jetli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-21T20:07:56.000Z","updated_at":"2025-02-07T10:27:00.000Z","dependencies_parsed_at":"2024-03-06T02:42:04.759Z","dependency_job_id":"9e70c0ef-fb2a-41a0-8a79-f15e715e1ce1","html_url":"https://github.com/jetli/create-yew-app","commit_stats":{"total_commits":79,"total_committers":4,"mean_commits":19.75,"dds":0.03797468354430378,"last_synced_commit":"61d1de2a227669c7ff53845cae240c9d8942dbdf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetli%2Fcreate-yew-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetli%2Fcreate-yew-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetli%2Fcreate-yew-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetli%2Fcreate-yew-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jetli","download_url":"https://codeload.github.com/jetli/create-yew-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665759,"owners_count":21142123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["create-yew-app","rust","wasm","wasm-bindgen","wasm-pack","webassembly","yew"],"created_at":"2024-08-04T01:01:18.816Z","updated_at":"2025-04-13T04:58:55.873Z","avatar_url":"https://github.com/jetli.png","language":"Rust","funding_links":[],"categories":["Templates"],"sub_categories":[],"readme":"# Create Yew App\n\nCreate Yew apps with no build configuration.\n\n- [Creating an App](#creating-an-app) – How to create a new app.\n- [Yew](https://github.com/yewstack/yew) - Rust / Wasm framework for building client web apps.\n- [Awesome Yew](https://github.com/jetli/awesome-yew) - A curated list of awesome things related to Yew / WebAssembly.\n- [Realworld example](https://github.com/jetli/rust-yew-realworld-example-app) - Exemplary real world app built with Rust + Yew + WebAssembly.\n\n[Check out a live demo](https://jetli.github.io/create-yew-app/) powered by Create Yew App.\n\n## Quick Overview\n\n```sh\nnpx create-yew-app my-app\ncd my-app\ntrunk serve\n```\n\n_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_\n\nThen open [http://localhost:8080/](http://localhost:8080/) to see your app.\u003cbr/\u003e\nWhen you’re ready to deploy to production, create a minified bundle with `trunk build`.\n\n## Getting Started\n\n### Install Rust wasm target\n\n```sh\nrustup target add wasm32-unknown-unknown\n```\n\n### Install [Trunk](https://trunkrs.dev).\n\n## Creating an App\n\n**You’ll need to have Node 8.16.0 or Node 10.16.0 or later version on your local development machine** (but it’s not required on the server). You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.\n\nTo create a new app, you may choose one of the following methods:\n\n### npx\n\n```sh\nnpx create-yew-app my-app\n```\n\n_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) is a package runner tool that comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_\n\n### npm\n\n```sh\nnpm init yew-app my-app\n```\n\n_`npm init \u003cinitializer\u003e` is available in npm 6+_\n\n### Yarn\n\n```sh\nyarn create yew-app my-app\n```\n\n_[`yarn create \u003cstarter-kit-package\u003e`](https://yarnpkg.com/lang/en/docs/cli/create/) is available in Yarn 0.25+_\n\n### Project structure\n\nIt will create a directory called `my-app` inside the current folder.\u003cbr/\u003e\nInside that directory, it will generate the initial project structure and install the transitive dependencies:\n\n```\nmy-app\n├── README.md\n├── .gitignore\n├── Cargo.toml\n├── index.html\n├── LICENSE-APACHE\n├── LICENSE-MIT\n├── tailwind.config.js\n├── tailwind.css\n├── Trunk.toml\n├── public\n│   ├── favicon.ico\n│   ├── logo.svg\n└── src\n    ├── lib.rs\n    ├── main.rs\n    ├── app\n    │   ├── about.rs\n    │   ├── home.rs\n    │   └── mod.rs\n    └── components\n        ├── nav.rs\n        └── mod.rs\n```\nNo configuration or complicated folder structures, only the files you need to build your app.\u003cbr\u003e\nOnce the installation is done, you can open your project folder:\n\n```sh\ncd my-app\n```\n\nInside the newly created project, you can run some built-in commands:\n\n### `trunk serve`\n\nRuns the app in development mode.\u003cbr\u003e\nOpen [http://localhost:8080](http://localhost:8080) to view it in the browser.\n\nThe page will automatically reload if you make changes to the code.\u003cbr\u003e\nYou will see the build errors and lint warnings in the console.\n\n### `trunk build`\n\nBuilds the app for production to the `dist` folder.\u003cbr\u003e\nIt correctly bundles Yew in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr\u003e\n\nYour app is ready to be deployed.\n\n### `wasm-pack test --headless --chrome`\n\nRuns the test watcher in an interactive mode.\u003cbr\u003e\nBy default, runs tests related to files changed since the last commit.\n\n# Contributing\n\nFeel free to take a look at the current issues in this repo for anything that currently needs to be worked on.\n\nYou are also welcome to open a PR or a new issue if you see something is missing or could be improved upon.\n\n# License\n\nApache License (Version 2.0)\n\nSee [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetli%2Fcreate-yew-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjetli%2Fcreate-yew-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetli%2Fcreate-yew-app/lists"}