predix-hello-scala

Predix-Hello-Scala

A basic attempt to develop on Predix.io using the Scala programming language and its ecosystem of awesome libraries.

This sample app leverages on:

What does it do?

  • Create a Finagle HTTP Server
  • Create a Finagle HTTP Client (based on this example) to call the Predix API Endpoint and get info on the environment
  • Show an extract from that info
    Cloud Foundry GE Open Sandbox: API version = 2.62.0

Getting Started

Install tools

Be sure to have SBT installed on you machine

Get the source code

Make a directory for your project. Clone or download and extract the starter in that directory.

git clone https://github.com/indaco/predix-hello-scala.git
cd predix-hello-scala

Running the app locally

sbt

> run-main WebServer

Running in Predix Cloud

  1. Open the manifest.yml file and edit the name for your own application
  2. Push the app to your Predix account $cf push

Copyright and License

Licensed under the MIT License, see the LICENSE file.


DISCLAIMER

This is not an official development from the GE Digital’s Predix Team

Visit original content creator repository
https://github.com/indaco/predix-hello-scala

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *