Skip to content
/ elara Public

Work-in-progress educational programming game

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE.txt
MIT
MIT-LICENSE.txt
Notifications You must be signed in to change notification settings

albrow/elara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bb7d781 · Jan 12, 2025
Feb 3, 2023
Nov 12, 2024
Jan 12, 2025
Jan 12, 2025
Nov 20, 2023
Jun 22, 2023
Jun 22, 2023
Sep 14, 2023
Jun 22, 2023
Nov 18, 2023
Dec 15, 2022
Jun 19, 2024
Jan 12, 2025
Jan 5, 2023
Dec 16, 2022
Nov 20, 2023
Dec 12, 2023
Nov 20, 2023
Jan 4, 2023

Repository files navigation

Elara

Elara is a work-in-progress game which teaches you programming in a fun an interactive way :)

Project structure

  • elara-lib/ is the root directory for the Rust crate. The Rust code is responsible for most game logic, but doesn't do any rendering.

  • web/ is the root directory for the web UI. This is the part of the code responsible for rendering and user interaction.

Prerequisites

Common commands

Install dependencies

npm install
npm run build:wasm

Run dev server

Running the dev server requires two separate commands (e.g. run in separate terminal windows). In the first terminal window:

npm run watch:wasm

In the second:

npm run dev

This will start a development server on http://127.0.0.1:5173/. Auto-reloads when any source code changes.

How to build in release mode

Builds the project and places it into the /web/dist folder.

npm run build

Builds the project for distribution on Itch.io:

npm run build:itchio

Builds and packages the project as a native application via Electron:

npm run build:electron

Run unit tests

npm test