As part of the launch of our new Topcoder Community for Predix, we are launching series of fun challenges to help introduce you to GE's Predix platform. This is the second challenge of the series and will be a good start to get acquainted with Predix services. If you missed the first challenge in the series, you might want to start with that one and come back to this one after you’ve completed it.
This is a fun challenge. Although there will be no prize money awarded, members who complete this challenge successfully will receive 500 TCO points for TCO ‘17.
NOTE: If you haven’t completed the first challenge in this series, you will also need to register for your Predix account. Go to http://predix.topcoder.com/ and click the Join the Topcoder Community for Predix button. Fill out the registration form and confirm your email address. Complete the instructions you’ll receive in your community welcome email to register for your Predix developer account.
What is Predix?
The Predix platform is a cloud-based Platform-as-a-Service (PaaS) for the Industrial Internet. The Predix platform provides tools, framework, guidelines, and best practices that enable you to create solutions to run industrial-scale analytics. As it connects machines, data, people, and other assets, the Predix platform uses leading technologies for distributed computing, big-data analytics, asset data management, and machine-to-machine communication. A comprehensive platform overview can be found here. If you have previously used or are familiar with other platforms-as-a-service (AWS, Google Cloud Platform, Heroku, IBM Bluemix), this should feel right at home.
Requirements for this challenge
As your introduction to the Predix platform services, you will be incorporating “User Account and Authentication” (UAA) services in the application. UAA services will be mostly required to access other applications, hence it would be a good idea to get acquainted with them.
This challenge requires you to create a login page, to allow a user to login to your app, using OAuth using UAA service.
While setting up your app name for this challenge, please include your topcoder username in the app name, to enable us to distinguish between apps. For example, if your username is xyz, then your app name could be xyz-weather.
Step 1: Read and complete the steps in the detailed guide to incorporate UAA service.
Click “Create Service”
Click on your UAA Service
Click “Open Service Instance” on the left
Log in to your UAA Dashboard by entering the password
Create 1 or 2 users.
cf bind-service <your-app-name> <your-uaa service>
Step 2: Create a login page, which uses the configured UAA service.The tutorial here, outlines a step by step approach.