Skip to content

Chess with Angular2 client and Spring server with web socket.

Notifications You must be signed in to change notification settings

felipebutcher/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://198.199.104.211/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