Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.1 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.1 KB

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