If you are a bluemix newbie,I think the following provided workshop are best for you to learn BlueMix.I coolect some from internet,you can download and learn it by yourself.
Build Android Application using Mobile Cloud Boiler Plate
Building a PHP Application with a Buildpack on BlueMix
Lab A - Build an Application on BlueMix
Lab B - Node.js Apps with JazzHub and BlueMix
Lab C - Build a Twitter Influencer Application in BlueMix
Lab D - Create your first Mobile app with MBaaS using BlueMix
Lab E - mapreduce
Creating Internet of Things apps using BlueMix
Introduction to IBM DevOps Services on Bluemix
Showing posts with label BlueMix. Show all posts
Showing posts with label BlueMix. Show all posts
Sunday, September 7, 2014
Thursday, September 4, 2014
Advanced Features for the Applications in Bluemix
Today I listen to a session about "Advanced Features for the Applications in Bluemix" from product team,some new features are added on the BlueMix.I will share some new features here.
RMU(Runtime Management Utility )
The below scenario I think most developer will meet on BlueMix.
As the application operator, I hope to generate dump files for running application in bluemix.
As the application operator, I hope to update the logger level dynamically to the running application in bluemix.
The RMU will provide the above feature to easy for you to debug the issue on the BlueMix.Let us see how it work.
a)Suppose you use "Liberty for Java" to create a Java application.When you click the Liberty for java,you can see the instance details.
RMU(Runtime Management Utility )
The below scenario I think most developer will meet on BlueMix.
As the application operator, I hope to generate dump files for running application in bluemix.
As the application operator, I hope to update the logger level dynamically to the running application in bluemix.
The RMU will provide the above feature to easy for you to debug the issue on the BlueMix.Let us see how it work.
a)Suppose you use "Liberty for Java" to create a Java application.When you click the Liberty for java,you can see the instance details.
b)You can choose "trace" or "dump" feature.
c.You can set the log level for the trace.
d0Also you can create dump file and download it.
Auto Scaling
Auto-Scaling, as indicated by the name, helps you to manage your application capacity automatically on target environment.You can see below artichure,
Auto-Scaling, as indicated by the name, helps you to manage your application capacity automatically on target environment.You can see below artichure,
Metrics
CPU
Memory
Heap memory
Policy
Trigger (Threshold, statistic window)
minimum instance number
maxmum instance number
Scaling adjustment
Scaling adjustment type(percentage or number)
Let;s see how it work on the BlueMix.
You can bind this add-on to your application.
2.Click the DashBoard on the BlueMix.You can see which application used sceal add on.
3.Click the edit button,you can change the default policy for this application.You can define the rules to increase the instance based on the real needs.
4.You can also check the metric like CPU,memory used for this application.It will better help you to make the decision for the auto-scale.
Thursday, August 28, 2014
Play fisherman game on BlueMix
I think most of people played a game named fishermen on Andriod or IOS device.I think we can do a html version on BlueMix.I have deployed it on the http://fisherman.mybluemix.net/,you can play it online.
Actually it is a very simple html js project ,I think you can do it yourself.
1.First download the game source code,you can get it from http://pan.baidu.com/s/1i3IHkK9
2.Unzip the code to your disk for example c:\finsherman
3.use cf command to deploy the code.Use cf command to login.
C:\Users\IBM_ADMIN>cf login
API endpoint: https://api.ng.bluemix.net
Username>XXXXs@gmail.com
Password>
Authenticating...
OK
4.Since the site is static sites,we will use nginx-buildpack to deploy our application.
C:\fishman>cf push -b https://github.com/cloudfoundry-community/nginx-buildpack
fisherman
After deployed,you can launch the http://fisherman.mybluemix.net to play this game.Just enjoy it!
Actually it is a very simple html js project ,I think you can do it yourself.
1.First download the game source code,you can get it from http://pan.baidu.com/s/1i3IHkK9
2.Unzip the code to your disk for example c:\finsherman
3.use cf command to deploy the code.Use cf command to login.
C:\Users\IBM_ADMIN>cf login
API endpoint: https://api.ng.bluemix.net
Username>XXXXs@gmail.com
Password>
Authenticating...
OK
4.Since the site is static sites,we will use nginx-buildpack to deploy our application.
fisherman
After deployed,you can launch the http://fisherman.mybluemix.net to play this game.Just enjoy it!
Friday, August 22, 2014
Git,JazzHub,BlueMix
What is the relationship among of them? Today I will take about this.
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. GitHub is online project hosting using Git. Includes source-code browser, in-line editing, wikis, and ticketing.Pls don;t confuse these two concept of these two words.
You have 2 ways to work with your JazzHub project sourced in Git
Git command tool from git: http://git-scm.com/downloads
EGit Eclipse client eclipse.org: http://www.eclipse.org/downloads/
Notes:When you install git command tools for windows ,you need to choose to use git from window command promot mode.
IBM DevOps Services(Old Name JazzHub) is a place where you can collaborate with others to develop, track, plan and deploy software.Lets see how we fork a jazzHub project and get project use git.
First I will fork one project in JazzHub,
https://hub.jazz.net/project/arzetry/nodeJS-bluemix/overview
Click the edit code button and it will go to the web edit mode,I click the fork link to one of my project.
git commit -m "change deploy conf"
Push the changes to the jazzhub.
c:\nodeJS>git push origin master
Username for 'https://hub.jazz.net':XXXXX@XXX.com
Password for 'https://XXXX@XXX@hub.jazz.net':
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 318 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2)
remote: Processing changes: refs: 1, done
To https://hub.jazz.net/git/blackwhites/nodeJS
d47f709..14800f3 master -> master
Open the manifest.yml again in the jazzhub,you can see the content is already changed.
After you change the code in WEB-UI,you need to commit the changes on the git.
If you don;t have git client tools you can directly edit the file on the jazzhub web UI.Everytimes when you finish the changes,you need to request a deploy, after that you can see the deployment status.
I go the bluemix category site,I can directly see the application has already been deployed and also been integrated with GIT.Lets see the application how it look like.
Congulation, you have a basic learn how git,jazzhub,bluemix work together to build a strong collaboration platform to deploy your application.
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. GitHub is online project hosting using Git. Includes source-code browser, in-line editing, wikis, and ticketing.Pls don;t confuse these two concept of these two words.
You have 2 ways to work with your JazzHub project sourced in Git
Git command tool from git: http://git-scm.com/downloads
EGit Eclipse client eclipse.org: http://www.eclipse.org/downloads/
Notes:When you install git command tools for windows ,you need to choose to use git from window command promot mode.
After you install the git,you need to do some command after installation
git config --global user.name "XXXX"
git config --global user.email XXXX@gmail.com
git config --global core.editor notepad.exe
You can use git config --list to list all the configuration of git.
git config --global user.name "XXXX"
git config --global user.email XXXX@gmail.com
git config --global core.editor notepad.exe
You can use git config --list to list all the configuration of git.
IBM DevOps Services(Old Name JazzHub) is a place where you can collaborate with others to develop, track, plan and deploy software.Lets see how we fork a jazzHub project and get project use git.
First I will fork one project in JazzHub,
https://hub.jazz.net/project/arzetry/nodeJS-bluemix/overview
Click the edit code button and it will go to the web edit mode,I click the fork link to one of my project.
You can use get the git url when you click the Git URL link for this project.
We can use the git client tool to get the code on your local side.
Since manifest.yml recored the bluemix deployment info,we need to change the previous domain and host.The changes like below.
Use the below command to submit the changesgit commit -m "change deploy conf"
Push the changes to the jazzhub.
c:\nodeJS>git push origin master
Username for 'https://hub.jazz.net':XXXXX@XXX.com
Password for 'https://XXXX@XXX@hub.jazz.net':
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 318 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2)
remote: Processing changes: refs: 1, done
To https://hub.jazz.net/git/blackwhites/nodeJS
d47f709..14800f3 master -> master
Open the manifest.yml again in the jazzhub,you can see the content is already changed.
After you change the code in WEB-UI,you need to commit the changes on the git.
If you don;t have git client tools you can directly edit the file on the jazzhub web UI.Everytimes when you finish the changes,you need to request a deploy, after that you can see the deployment status.
I go the bluemix category site,I can directly see the application has already been deployed and also been integrated with GIT.Lets see the application how it look like.
Congulation, you have a basic learn how git,jazzhub,bluemix work together to build a strong collaboration platform to deploy your application.
Tuesday, August 19, 2014
Use RapidApps to create your mobile protype on BlueMix
Recently I noticed that on BlueMix it provide a very cool feature RapidApp.With RapidApps, business developers can design applications for web
browsers, tablets, or mobile devices through a graphical user interface.
You never have to work with any code or scripts to create a
professional application.
Today I will show a simple demo for that.
1.First you need to create a RapidApps service for that leave Apps unbound.
6.Create your app screen,in our demo we need to create two screen one is called Main Menu and another is called Saved Location menu,
7.Drag a Text object onto the screen and change the text to describe your application. Double-click the text to edit it,also add two button save location and list location on the screen,
8.create another screen Saved Locations.When user click the main screen button save button,it will jump to the saved Locations screen.
Today I will show a simple demo for that.
1.First you need to create a RapidApps service for that leave Apps unbound.
2.After created service you can double click this service it will open the RapidApps console,it might take a while to finish the loading.
3.Enter the console,choose your user and organization,you can begin to create your apps.In the demo I created a application name 'Where is my car?" and input the description about my app.
4.After created your apps you can see the project dashboard ,you can do some operation on this app
5.Click the data plus link to create a Locations object and add the below attributes for this object.7.Drag a Text object onto the screen and change the text to describe your application. Double-click the text to edit it,also add two button save location and list location on the screen,
8.create another screen Saved Locations.When user click the main screen button save button,it will jump to the saved Locations screen.
9.Drag a form control on the saved locations with data object "location".
In order to automatically to assign the value for the driver ,you need to select Driver control and set the Driver Property to USER_ID.This value is when you login into BlueMix you user id.
9.Now, we can activate the button on the main menu. Select the Main Menu screen. Right-click the Save Location button and select Properties.Set “On click, navigate to” to Save Location
10.To test any screen, you can preview it. On the right-hand side, there is an eyeball icon – click on it
To see a preview of your screen.Notice in the Mobile Browser Simulator menu, you can add multiple devices to see what your application will look like on various form factors.
To see a preview of your screen.Notice in the Mobile Browser Simulator menu, you can add multiple devices to see what your application will look like on various form factors.
You can choose andrio or ios device to simulate your apps.
So through this demo you might have a good understanding how easy to use rapidapps to design your app prototype.Tuesday, August 12, 2014
How to make your application more security on BlueMix
Sometimes people want to make sure their application has no security issue on the cloud.Is there any service support that? The answer is yes,IBM provide a AppScan Dynamic Analyzer service which help you to scan your application on BlueMix and give you scan report,so you can change your code based on the suggestion they provide.
1.for your existing created liberty java project on the BlueMix,you only need to add this service into it.You can find this service through security category.
2.Double click the appscan dynamic analyzer service .add this service to your application.
3.After created this service for the specified application,you can double click this service.
4.Add your bluemix application url as the scan site.
5.After scan 5-10 minutes,you can see the report has generated.You can download the action part pdf to see the detail action and sugestion.
1.for your existing created liberty java project on the BlueMix,you only need to add this service into it.You can find this service through security category.
2.Double click the appscan dynamic analyzer service .add this service to your application.
3.After created this service for the specified application,you can double click this service.
5.After scan 5-10 minutes,you can see the report has generated.You can download the action part pdf to see the detail action and sugestion.
Monday, August 11, 2014
My Experience of using Enbeddable report on BlueMix
IBM has provide the Embeddable report service on BlueMix platform,how it look like? Today I will write my experience of using this.
Based on the official document,the current report service is still in beta version.It lets you run IBM Cognos Business Intelligence reports within your Bluemix environment. The reporting service is based on Cognos BI and supports content that was authored using Cognos BI Dynamic Query mode. The service runs against supported JDBC data source connections with applications that use one of our supported Bluemix runtime environments. You can use the provided REST-based interface to run reports and easily integrate reporting into your applications.
So let us experience for that. You can get the sample from the below link.
https://www.ng.bluemix.net/docs/#services/EmbeddableReporting/index.html#gettingstartedtemplate
The demostrate sample you can download form the below link.
https://erservice-beta1.ng.bluemix.net/public/sample-1.0.zip.
Some key steps for the sample.
1.Create a java liberty application on BlueMix.Here I named reportsample as the application name.
2.Create there services to bind this application.See below image.
a)MongoDB
The Embeddable Reporting service supports MongoDB as the repository for all reporting artifacts, which include:
It keeps the data which you will use this data to render your report based on this data.
c)Embeddable Reporting
It populate the MongoDB repository with your report artifacts from the service console that is associated to your instance of IBM Embeddable Reporting for Bluemix
3. Unzip the sample,zip you can see below strcture
4.Click the SQLDB service console,upload the branch.csv,products.csv,sales.csv under data folder into the sqldb table.Pls use load data feature to upload you csv to create the db data and table in sqldb service.
5.Pls record the db credntial information for reporting service configuration.You can click
Show Credentials link to check these kinds of info.
For mongo db
For sql db
Based on the official document,the current report service is still in beta version.It lets you run IBM Cognos Business Intelligence reports within your Bluemix environment. The reporting service is based on Cognos BI and supports content that was authored using Cognos BI Dynamic Query mode. The service runs against supported JDBC data source connections with applications that use one of our supported Bluemix runtime environments. You can use the provided REST-based interface to run reports and easily integrate reporting into your applications.
So let us experience for that. You can get the sample from the below link.
https://www.ng.bluemix.net/docs/#services/EmbeddableReporting/index.html#gettingstartedtemplate
The demostrate sample you can download form the below link.
https://erservice-beta1.ng.bluemix.net/public/sample-1.0.zip.
Some key steps for the sample.
1.Create a java liberty application on BlueMix.Here I named reportsample as the application name.
2.Create there services to bind this application.See below image.
a)MongoDB
The Embeddable Reporting service supports MongoDB as the repository for all reporting artifacts, which include:
- Report specifications
- Data source connections
- (Optional) IBM Cognos Business Intelligence C10 model
It keeps the data which you will use this data to render your report based on this data.
c)Embeddable Reporting
It populate the MongoDB repository with your report artifacts from the service console that is associated to your instance of IBM Embeddable Reporting for Bluemix
3. Unzip the sample,zip you can see below strcture
4.Click the SQLDB service console,upload the branch.csv,products.csv,sales.csv under data folder into the sqldb table.Pls use load data feature to upload you csv to create the db data and table in sqldb service.
5.Pls record the db credntial information for reporting service configuration.You can click
Show Credentials link to check these kinds of info.
For mongo db
{
"mongolab": {
"name": "MongoLab-2v",
"label": "mongolab",
"plan": "sandbox",
"credentials": {
"uri": "mongodb://XXXXXXX.mongolab.com:35257/IbmCloud_2g1be8as_1raue6of"
}
}
}
For sql db
{
"sqldb": {
"name": "SQL Database-hq",
"label": "sqldb",
"plan": "sqldb_small",
"credentials": {
"port": 50000,
"db": "I_992247",
"username": "XXXXXX",
"host": "23.246.233.41",
"hostname": "23.246.233.41",
"jdbcurl": "jdbc:db2://XXXXXXXXXX:50000/I_992247",
"uri": "db2://XXXXXXX:XXXXXX@23.246.233.41:50000/I_992247",
"password": "XXXXXX"
}
}
}
6.Launch theEmbeddable Reporting service,first you need to connect the mongdb use step 5
mongodb uri list in step five.
7.After connect,you need to import your report model on that.
8.Update the sqldb credential info based on step 5 and update the value in the provide
screenshot.
9. Using the cf utility, log in to the Bluemix environment.
Usage: cf login -a https://api.ng.bluemix.net -o <Bluemix ID>
When prompted, enter your email address and password.The next step push report app on the BlueMix.
cf push reportsample -p defaultServer
10.Launch the report web application through the url.
Monday, August 4, 2014
How BlueMix integrated with JazzHub?
There are some new video about BlueMix released on the YouTube.You can learn key aspects of IBM BlueMix strategic technologies.
Rachel Reinitz, Distinguished Engineer and CTO for IBM Bluemix Garage, has three new videos about Bluemix:
1.First create node.js project from BlueMix
2.After create the project,you can see a add git button.
3.When click the add git button,it will let you input your jazzhub IBM id.
4.It will prompt you to create git Repository.
5.You will see the Success info.
6.You can see the application page,the page has already integrated with GIT.
7.Click the code button,you can enter the project code edit mode.
8.You can use configure button to change the deploy parameter for the BlueMix.
Rachel Reinitz, Distinguished Engineer and CTO for IBM Bluemix Garage, has three new videos about Bluemix:
- IBM Bluemix: A revolution in application development
- IBM Bluemix: Architecting for the cloud
- IBM Bluemix Garage: Agile innovation center for startups & enterprises
1.First create node.js project from BlueMix
2.After create the project,you can see a add git button.
3.When click the add git button,it will let you input your jazzhub IBM id.
4.It will prompt you to create git Repository.
5.You will see the Success info.
6.You can see the application page,the page has already integrated with GIT.
7.Click the code button,you can enter the project code edit mode.
8.You can use configure button to change the deploy parameter for the BlueMix.
Subscribe to:
Posts (Atom)
















































