This project implements Conway's Game of Life using a Tauri application with Rust for the backend and a frontend powered by HTML, TypeScript, and Vite.
To set up and run this project, follow these steps:
Ensure you have the following installed on your system:
- Node.js (v20.11.0 or higher)
- PNPM (v8.15.5 or higher)
- Rust (2021 edition)
You can check if these are installed and find the versions by running:
node -v
pnpm -v
rustc --version-
First, clone the repository and navigate into the project directory.
-
Install the necessary Node.js dependencies:
pnpm installTo run the development version of the project:
pnpm run dev:tauriThis command starts the Vite development server and the Tauri development mode. The Vite server will run on http://localhost:1420, and the Tauri window will open automatically.
To build the project for production:
pnpm buildThis command builds the frontend and backend components of the project. An executable file will be created in the src-tauri/target/release directory and 3 installers for Windows (msi in english and french and nsis in english) will be created in the release directory.
Once the application is running, you can interact with the Game of Life grid displayed in the Tauri window. Click on cells to toggle their state between alive and dead, and use the provided controls to start, stop, and reset the simulation.