Skip to content

LarsBergqvist/sudoku-app

Repository files navigation

sudoku-app

Build and deploy

App screenshot

Project Setup

git clone https://github.com/LarsBergqvist/sudoku-app.git
cd sudoku-app
npm install
npm run dev

Mock API

By default, the app uses a mock API to fetch a random sudoku puzzle with a specified difficulty level from a predefined set. The mock data is located in the src/mocks/sudokuData.ts file.

Use the real API

To use the real API that generates new random puzzles for every request, you need to clone the sudoku-puzzler api (C#, NET8) and run it locally:

git clone https://github.com/LarsBergqvist/sudoku-puzzler.git
cd sudoku-puzzler
dotnet build
dotnet run --project ./Sudoku.Web/Sudoku.Web.csproj

Then, modify .env.development in the sudoku-app project to point to the local API and set VITE_USE_MOCK_API to false.

VITE_USE_MOCK_API=false
VITE_API_URL='http://localhost:5000'

About

A Sudoku app implemented with React/Redux and TypeScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published