A tool to calculate CO2 emitted by a house, advise how to reduce it, and encourages to offset the rest by planting trees.
To ask questions regarding contributing, share thoughts, feedback or really anything project related, please join us on Slack or during our virtual office hours on Zoom.
-
You will need IBM Cloudant database credentials. The app config file expects them as the environment variables.
export IBM_DB_URL=your-cloudant-db-url export IBM_IAM_KEY=your-ibm-iam-key
-
To run the application, you can either build and run it in your env or run it in a container. Either way, the BeNeutral banner in the log indicates the server is up.
- Un-containerized app server
- Run
mvn package
to build the application - Start application with
java -jar target/be-neutral-1.0-SNAPSHOT.jar server config.yml
- Run
- Run the server in a docker container, using the latest image from the master branch, published to dockerhub:
docker run -p 8080:8080 -p 8081:8081 -e IBM_IAM_KEY -e IBM_DB_URL marihak/be-neutral
- Un-containerized app server
-
To check that the application is running enter url
http://localhost:8080/api/v1/
-
You can find api documentation at
http://localhost:8080/api/v1/swagger
-
The front page can be found under
http://localhost:8080/
To see your applications health enter url http://localhost:8081/healthcheck
mvn test
- runs unit testsmvn verify
- runs unit and integration testsmvn clean package -DskipTests
- re-builds without tests