https://github.com/gailo22/hellomicroclimate
Microclimate application
https://github.com/gailo22/hellomicroclimate
Last synced: 3 months ago
JSON representation
Microclimate application
- Host: GitHub
- URL: https://github.com/gailo22/hellomicroclimate
- Owner: gailo22
- Created: 2019-02-13T09:28:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-13T09:29:31.000Z (over 6 years ago)
- Last Synced: 2024-10-19T13:35:48.635Z (8 months ago)
- Language: HTML
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Microservice
IBM Cloud Microservice Starter for Spring[](https://bluemix.net)
[](https://www.ibm.com/developerworks/learn/java/)### Table of Contents
* [Summary](#summary)
* [Requirements](#requirements)
* [Configuration](#configuration)
* [Project contents](#project-contents)
* [Run](#run)### Summary
The IBM Cloud Microservice Starter in Java provides a starting point for creating Java microservice applications running on [Spring](https://spring.io/).
To deploy this application to IBM Cloud using a toolchain click the **Create Toolchain** button.
[](https://console.ng.bluemix.net/devops/setup/deploy/)### Requirements
* [Maven](https://maven.apache.org/install.html)
* Java 8: Any compliant JVM should work.
* [Java 8 JDK from Oracle](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
* [Java 8 JDK from IBM (AIX, Linux, z/OS, IBM i)](http://www.ibm.com/developerworks/java/jdk/)### Configuration
Capabilities are provided through dependencies in the pom.xml file.### Project contents
The ports are set to the defaults of 8080 for http and 8443 for https and are exposed to the CLI in the cli-config.yml file.The project contains IBM Cloud specific files that are used to deploy the application as part of a IBM Cloud DevOps flow. The `.bluemix` directory contains files used to define the IBM Cloud toolchain and pipeline for your application. The `manifest.yml` file specifies the name of your application in IBM Cloud, the timeout value during deployment and which services to bind to.
This microservice application is configured to connect to the following services :
Credentials are either taken from the VCAP_SERVICES environment variable that IBM Cloud provides or from environment variables passed in by the config file `src/main/resources/localdev-config.json`.
### Run
To build and run the application:
1. `mvn install`
1. `java -jar ./target/hellomicroclimate-1.0-SNAPSHOT.jar`To run the application in Docker use the Docker file called `Dockerfile`. If you do not want to install Maven locally you can use `Dockerfile-tools` to build a container with Maven installed.
### Endpoints
The application exposes the following endpoints:
The ports are set in the pom.xml file and exposed to the CLI in the cli-config.yml file.
### Notices
This project was generated using:
* generator-ibm-java v5.13.7
* generator-ibm-service-enablement v3.1.2
* generator-ibm-cloud-enablement v1.5.4
* generator-ibm-java-spring v