-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
# `rust-parcel-template` | ||
[![](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) | ||
[![](https://github.com/unrenamed/rust-minesweeper/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/unrenamed/rust-minesweeper/actions/workflows/build.yml) | ||
|
||
**Kickstart your Rust, WebAssembly, and Parcel project!** | ||
# `Rust Minesweeper💣` | ||
|
||
This template comes pre-configured with all the boilerplate for compiling Rust | ||
to WebAssembly and hooking into a Parcel build pipeline. | ||
**Tech stack: Rust, WebAssembly, and Parcel** | ||
|
||
* `npm run start` -- Serve the project locally for | ||
This project uses pre-configured rust-parcel template with all the boilerplate | ||
for compiling Rust to WebAssembly and hooking into a Parcel build pipeline. | ||
|
||
- `npm run start` -- Serve the project locally for | ||
development at `http://localhost:1234`. | ||
|
||
* `npm run build` -- Bundle the project (in production mode) | ||
- `npm run build` -- Bundle the project (in production mode) | ||
|
||
### Installation | ||
|
||
## Using This Template | ||
To use the app locally you should install Rust and wasm-pack. The command below will do that for you: | ||
|
||
```sh | ||
cargo install wasm-pack | ||
./build.sh | ||
``` | ||
|
||
Or if you want to do everything manually, follow the official Rust installation guide: https://www.rust-lang.org/tools/install | ||
|
||
and then | ||
|
||
```sh | ||
npm init rust-parcel my-app | ||
cargo install wasm-pack | ||
``` |
c80027f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rust-minesweeper – ./
rust-minesweeper.vercel.app
rust-minesweeper-unrenamed.vercel.app
rust-minesweeper-git-main-unrenamed.vercel.app