Giter Club home page Giter Club logo

jeremymatthewwerner / openespi-datacustodian-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from greenbuttonalliance/openespi-datacustodian-java

0.0 1.0 0.0 6.94 MB

Spring Framework implementation of a Green Button Data Custodian OpenESPI Application

Home Page: https://sandbox.greenbuttonalliance.org:8443/DataCustodian/

License: Apache License 2.0

Shell 0.10% Java 76.97% CSS 5.19% HTML 11.77% JavaScript 0.16% Gherkin 1.20% TSQL 4.60%

openespi-datacustodian-java's Introduction

CircleCI Quality Gate Status

OpenESPI-DataCustodian

The Open Energy Services Provider Interface (ESPI) Data Custodian Repository Providing implementations of the interface used to provide energy usage information to retail customers and third parties.

An operational sandbox with these services operating may be found at: sandbox.greenbuttonalliance.org:8443/DataCustodian

Setup

Note: You need to download and install OpenESPI-Common-java into your local Maven repository to build this project.

First clone the project from github:

git clone https://github.com/GreenButtonAlliance/OpenESPI-DataCustodian-java.git
cd OpenESPI-DataCustodian/

Build and start tomcat7 using maven (note: you must have first built the OpenESPI-Common-java jar):

mvn tomcat7:run

Now the application should be available at http://localhost:8080/retailcustomers.

Building

# for the default test profile
mvn clean install

# or for a specific profile
mvn -P <profile name> -Dmaven.test.skip=true clean install

IDE Setup

Eclipse Setup

Open Eclipse and import a Maven project (File > Import... > Maven > Existing Maven Projects).

Spring Tool Suite Setup

Open Spring Tool Suite and import a Maven project (File > Import... > Maven > Existing Maven Projects). To Run from within STS:

right click on project and select RunOnServer

To run the DC and/or the TP:

do a maven build and install accordingly. Then the WAR files will be in the right position.

To Start server:

sudo /home/bitnami/springsource/vfabric-tc-server-developer-2.9.3.RELEASE/base-instance/bin/tcruntime-ctl.sh start

To Stop server:

sudo /home/bitnami/springsource/vfabric-tc-server-developer-2.9.3.RELEASE/base-instance/bin/tcruntime-ctl.sh stop

IntelliJ Setup

Open IntelliJ and open the project (File > Open...).

Testing

Unit Tests

To run all Unit tests:

mvn test

Run a single test class:

mvn -Dtest=<TestClassName> test
mvn -Dtest=HomeControllerTests test

Run a single test in a single class:

mvn -Dtest=<TestClassName>#<testMethodName> testMethodName
mvn -Dtest=HomeControllerTests#index_shouldDisplayHomePage test

Cucumber Features

To run all Cucumber features:

mvn verify

openespi-datacustodian-java's People

Contributors

jateeter avatar dfcoffin avatar martyburns avatar antityping avatar bramsey avatar jeremymatthewwerner avatar cdymek avatar

Watchers

James Cloos 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.