All Projects → aelgohar → rusty-connect4

aelgohar / rusty-connect4

Licence: MIT License
A full-stack application written completely in Rust.

Programming Languages

rust
11053 projects
HTML
75241 projects

Projects that are alternatives of or similar to rusty-connect4

yew-router
Router extension to yew
Stars: ✭ 27 (-10%)
Mutual labels:  stdweb, yew
portfolio
My Portfolio
Stars: ✭ 17 (-43.33%)
Mutual labels:  yew, yew-router
wasi-worker
WASM / WASI interface for browser service workers
Stars: ✭ 31 (+3.33%)
Mutual labels:  yew
bounce
The uncomplicated Yew State management library
Stars: ✭ 43 (+43.33%)
Mutual labels:  yew
surfer
The Blog built on pure Rust stack. Backend for graphql services, and frontend for web application.
Stars: ✭ 35 (+16.67%)
Mutual labels:  yew
yew form
Components to simplify handling forms with Yew
Stars: ✭ 83 (+176.67%)
Mutual labels:  yew
zzhack
🦀️ WASM webapp template written in Rust
Stars: ✭ 170 (+466.67%)
Mutual labels:  yew
ybc
A Yew component library based on the Bulma CSS framework.
Stars: ✭ 131 (+336.67%)
Mutual labels:  yew
rs2048
2048 in Rust
Stars: ✭ 38 (+26.67%)
Mutual labels:  stdweb
paudle
Wordle in Rust
Stars: ✭ 40 (+33.33%)
Mutual labels:  yew
lifeee-rs
An implementation of the Game of Life
Stars: ✭ 53 (+76.67%)
Mutual labels:  yew
reacty yew
Generate Yew components from React components via Typescript type definitions
Stars: ✭ 46 (+53.33%)
Mutual labels:  yew
stylist-rs
A CSS-in-Rust styling solution for WebAssembly Applications
Stars: ✭ 124 (+313.33%)
Mutual labels:  yew
facade
Facade Framework - autogenerated embedded live dashboards for Rust apps
Stars: ✭ 95 (+216.67%)
Mutual labels:  yew
material-yew
Yew wrapper for Material Web Components
Stars: ✭ 116 (+286.67%)
Mutual labels:  yew
patternfly-yew
PatternFly components for Yew
Stars: ✭ 51 (+70%)
Mutual labels:  yew
FullstackRustDemo
Novelty website + bucket questions implementation.
Stars: ✭ 40 (+33.33%)
Mutual labels:  yew
fullstack-rust
Reference implementation of a full-stack Rust application
Stars: ✭ 39 (+30%)
Mutual labels:  yew
rocket-yew-starter-pack
Example boilerplate for websites in pure Rust
Stars: ✭ 77 (+156.67%)
Mutual labels:  yew
www
my website built using Rust (stdweb) → .wasm (also: dat://ricky.codes)
Stars: ✭ 12 (-60%)
Mutual labels:  stdweb

Rusty Connect 4 Web App

Rusty Connect 4 is a full-stack project written completely in Rust. It uses:

  • rocket on the backend
  • yew for creating front-end webapps with WebAssembly (yew is a great component-based framework!)
  • yew-router for routing
  • stdweb to provide Rust bindings for Web APIs

The backend is only used for requests and saving your progress. You can still play the game with just the frontend.

Gameplay

Dependencies

cargo-web

The frontend is built using cargo-web, which can be installed with the following command.

cargo install cargo-web

MongoDB

The backend uses MongoDB for storing game history. Instructions for how to install MongoDB can be found here.

nightly

Rocket requires the latest version of Rust nightly (see here). From the base directory of the project, run:

rustup override set nightly

Run

The project can be built and ran from by executing the following commands from the base directory of the project.

To compile the frontend and generate the static files for the webpage:

(cd frontend && cargo web deploy)

To build and run the backend:

cargo run -p backend

The game should now be up and running and can be accessed by going to localhost:8000 in any web browser.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].