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.
dfx
command line from Internet Computer SDKnode
installed
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.
dfx deploy
npm run open