Code Monkey home page Code Monkey logo

bridgeserver2's Introduction

BridgeServer2

Bridge Server 2.0 running on Spring Boot.

Set-up

In your home directory, add a file BridgeServer2.conf and add any other local overrides.

If you are using a local MySQL instance, it should not have any sql_mode flags set (none are set in our Aurora DB instances in any environment, and some of our SQL depends on this behavior...more recent MySQL installations set a number of these mode flags by default). Verify that no sql_mode values are set by adding a .my.cnf (in your home directory) or my.cnf file (in other directories) based on where your MySQL installation is looking for this file. Here’s a good explanation of how to determine the right location and there may be installed or pre-existing config files that will overwrite your changes if you don’t supercede them in the precedence order MySQL is using to find the file. On Macs for example, /etc/my.cnf is the first place a dmg-installed version of MySQL will look for this file, but it is different if you install MySQL using brew.

The contents should be:

[mysqld]
bind-address = 127.0.0.1
sql-mode =

Then restart your MySQL server.

Build

To run a full build (including compile, unit tests, findbugs, and jacoco test coverage), run:
mvn verify

(A full build takes about 30 seconds on my laptop, from a clean workspace.)

To just run findbugs, run:
mvn compile findbugs:check

To run findbugs and get a friendly GUI to read about the bugs, run:
mvn compile findbugs:findbugs findbugs:gui

To run jacoco coverage reports and checks, run:
mvn test jacoco:report jacoco:check

Jacoco report will be in target/site/jacoco/index.html

Execution

To run this locally, run
mvn spring-boot:run

To run this locally without executing boostrapping framework (which improves start-up time):
mvn spring-boot:run -Dspring.profiles.active=noinit

To debug remotely, run:
mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"

Useful Spring Boot / Maven development resouces:

bridgeserver2's People

Contributors

alxdarksage avatar chuguoxipo avatar dependabot[bot] avatar dephillipsmichael avatar dwaynejengsage avatar imranmaj avatar janaechan avatar jnelsonjava avatar kellyyangsong avatar kss39 avatar liujoshua avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.