Skip to content

sephioh/angular2-spring-chess

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular2 Spring Boot Chess

This is a Chess game using AngularJS (v4) as client and Spring Boot as server running a Web Socket handler.

The app is deployed here: http://104.131.146.200/chess

The app doesn't have AI so you must send the game's URL to another human being or open in a different browser to test yourself.

Dev - Client Install

Client is a simple AngularJS (v4) app using a raw Web Socket client. Works only on modern browsers.

cd client/
npm install
ng serve

Dev - Server Install

Server is a Spring Boot app with a Web Socket handler. Follow steps to run locally.

cd server/
./gradlew build
./gradlew test -i #to run junit
./gradlew bootRun

Prod - Client Deploy

Edit index.html changing base href to "/chess" or whatever you deployed. Ignore this if deployed in the root of domain.

cd client/
ng build --prod
cp dist/* [the chess folder in your Apache's www html folder]

Prod - Server Deploy

Edit start.sh to change java memory usage. mvn package will not build if tests fail.

cd server/
mvn package
chmod +x start.sh
start.sh

About

Chess with Angular2 client and Spring server with web socket.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 62.9%
  • TypeScript 31.5%
  • JavaScript 2.3%
  • HTML 1.7%
  • CSS 1.5%
  • Shell 0.1%