cristianoc / rescript-motoko

Mareo game with a frontend written in ReScript and backend written in Motoko

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mareo

Based on https://github.com/cristianoc/mareo, with a frontend written in ReScript and backend written in Motoko. The backend is used to load and save game state.

Prerequisites

Quick Start

cd rescript-motoko

# start the replica and build the backend
dfx start --background
dfx deploy backend

# start the frontend
npm install
npm run start

To iterate on the frontend code in src/frontend either use an editor extension with ReScript support such as rescript-vscode, or build directly with npx rescript.

To iterate on the backend code, edit .mo files in src/backend. The interface between frontend and backend is in src/frontend/src/Backend.res.

Deploy both backend and frontend canisters

dfx deploy
npm run open

About

Mareo game with a frontend written in ReScript and backend written in Motoko


Languages

Language:ReScript 83.2%Language:Modelica 5.5%Language:JavaScript 4.3%Language:CSS 3.6%Language:HTML 3.4%Language:TypeScript 0.1%