Skip to content

MatanelGordon/wasm-sudoku-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebAssembly Sudoku Solver

GitHub

Sudoku Solver using WASM and Vue3 Composition API.

Screenshot 2023-04-25 at 19 18 46

The Project

This is a rust+node monorepo with several packages:

  • core - handles the business logic layer (the solver itself + UT)
  • wasm-lib - a wasm wrapper for core
  • client - the UI itself powered by Vue3 that uses the wasm-lib

Usage

to install the required dependencies, use the makefile:

make install

Client Dev Server

to run the client dev server run the following:

make dev-server

Note: Running this will initially build both the core and wasm-lib, so no need to run further commands afterwards

core Library

to run the tests for the core library run the following:

make test-core

to build the core library after changes do the following:

make build-core

Handling wasm-lib

to build the wasm-lib after changes run the following:

make build-lib

NOTE: build-lib also builds the core and will run tests

Using Docker

docker build . -t sudoku
docker run sudoku

Contributing

Submit an issue, and after discussing it, fill free to open a new branch and submit a PR.

feature/* for branches that add something new

bugfix/* for branches that fix something broken

refactor/* that's more for me :)