Skip to content

raveendar/sudoku-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku Java Stanalone Server

This is a Sudoku game project developed using Java backend without MVC framework (Using Framework-less Java REST API ). Grid generated using mocked data. User Input's validation done on the server side

Prerequisite

  • Java 17
  • Maven 3.6.3
  • Docker

Build

git clone https://github.com/raveendar/sudoku-java.git
cd sudoku-java
mvn install

* Create docker image
docker image build -t sudoku-java-jar:latest .

Run the server

* Run as Java Application
cd target
java -cp "sudoku-0.0.1-SNAPSHOT.jar;lib/*" Server

* Run as Docker Application
docker run --publish 8080:8080 sudoku-java-jar:latest

Test application using Curl commands

Generate Grid
curl --location 'http://localhost:8080/api/generate'

Validate User Input
curl --location 'http://localhost:8080/api/validate' \
--header 'Content-Type: application/json' \
--data '{
	"input" : [
		[0,0,0,0,0,0,0,0,3],
		[5,7,0,0,0,9,0,2,1],
		[0,0,2,0,0,0,0,7,0],
		[9,0,0,0,0,4,0,0,0],
		[6,0,0,7,0,0,3,5,0],
		[7,0,0,0,8,1,0,0,0],
		[0,6,0,0,1,0,2,0,0],
		[2,0,0,0,0,0,0,4,5],
		[0,0,1,4,0,5,0,0,0]
	]
}'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published