/bilt

BILT app for games

Primary LanguageHTML

BILT

##Project Setup

  1. Install redis
  1. Install Git
  1. Create GitHub account
  2. Fork repo
  1. Clone GIt repo to local workspace
  1. Building Applications
  • "mvn clean install" from /bilt directory to build all

Compile Code and Testing

Requirements:

  • Maven 3.2.5 and up

To compile all

mvn clean compile

To test all

mvn test

To build application and test

mvn clean install

Build Application and Run

*Note: all commands assume repo directory for working dir

Requirements:

  • docker
  • Make sure to add the /data directory to the list of directories that can be bind mounted into Docker containers,
  • Copy bilt-data/data-rest-test/dump.rdb to /data/bilt/dump.rdb to seed the database with defaults

To build all the targets:

docker run --rm -v "$PWD":/bilt -w /bilt maven:3.3.3-jdk-8 mvn clean install

To run:

docker-compose up

*Note: This command will run using the cached docker images. You need to add --build to regenerate the docker images with new changes

docker-compose up --build

To run by service type - for example start up redis :

docker-compose up redis

Data

To test basic CRUD for the data backend

docker-compose up data-rest-test

Swagger documentation: http://{docker_host}:9090/swagger-ui.html

Games Service

Games services for getting and managing game data

docker-compose up service-games

Swagger documentation: http://{docker_host}:9080/swagger-ui.html

BILT Webapp

BILT Webapp that serves as front end for service consumption

docker-compose up webapp

Web UI http://{docker_host}:8080

Project Start/Run (Maven/Java/Spring Way)

  1. Debugging
  • export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y”
  1. Starting Applications
  2. Start redis * Start reds from reds home dir
    • under src/
    • ./redis-server /redis.conf * (Optional) start up redis cli
    • under src/
    • ./redis-cli
  3. Starting bilt-data * mvn spring-boot:run
  4. Starting bilt-app * mvn spring-boot:run
  5. Starting bilt-webapp * mvn jetty:run
  6. REST endpoints on Swagger
  1. Using/Testing
  2. Open 2 browser windows to http://localhost:8080
  3. Click Connect
  4. Enter name … tmp until login is ready