Skip to main content

Trying IBM Cloud Foundry with Go

 Pre~

So sometime ago I try to search free host for Go and found out that IBM Cloud gave free stuff on their system. I went and try but didn’t read the document too much, I’m just excited to try the GO server. I’ve been learning the buffalo framework for a while then I have to stop because got injured in my ankle and try to rehabilitate them for a few month so I can walk again.

Anyway I found free stuff from IBM then I just want to try it out. This writing is just a documentation for me and anyone who see it useful. I didn’t try to write a very detailed or well edited science stuff. This document was meant to be a small cheatsheet for future reference.


IBM CLOUD DASHBOARD

If you already registered and logged in, you should be redirected to the Dashboard. If you see the menu from image below you’ll notice there are a lot of stuff ready to be explored. Now I just need to find where I could upload my GO code into server.

Anyway I chose the Cloud Foundry just because its on the very first menu and lucky for me its said “Deploy and run your applications without managing servers or clusters with IBM Cloud Foundry” and when scroll bit further I found that it has a lot of App runtime



and if you click .go it will redirect to Create Sample App page


note: I really should save the summary because it will be used for ibm cloud CLI

after creating the Free Cloud Foundry Service we can begin to upload the code. But before we could do that I suggest to read and try the Getting Started Part from the menu and try out IBM CLOUD CLI and using the sample code as base before we try our code. As you see in image below





IBM cloud host the sample code to use in Cloud Foundry. And if you see the sample code, the structure will be very different in what you and I use if we do from the website GO itself. The module path, and other stuff that I still don’t get it but I think IBM has own setting to be used for running GO. The framework that being used is GIN.

I already create using sample code. Here is the running site https://riza-go-pilot.us-south.cf.appdomain.cloud/

below is just unfinished writing and some screenshot. There are few error and deprecated code from the Getting Started doc, but I manage to run it.

Post~

I didn't put any detail just because I had so many error and don't care about anything else but how to troubleshoot this problem. Anyway thanks

 IBM CLOUD CLI

1. ibmcloud


2. ibmcloud login, Target region, ibmcloud info

3. Error Using Target –cf


4. Installing ibmcloud cf




5. after found out what to input for empty org, space, api endpoint


6. using ibmcloud target –cf without error


7. Testing cloud foundry GO sample, and error


8. push the sample to Target, found out buildpack was deprecated



9. after few minutes its start


10. check result. And what a journey




Comments

Popular posts from this blog

JavaScript Real Time Calculation

I've been around looking for javascript that can do Real Time Calculation. javascript real time calculation, javascript real time calculation textbox. by some lucky keywords i found this code. this is exactly the code that i want. it really do the real time calculation. and it doesn't need onChange or OnBlur function. Just try it Example + = this is the javascript code <script type='text/javascript' > function startCalc(){   interval = setInterval("calc()",1); } function calc(){   one = document.autoSumForm.firstBox.value;   two = document.autoSumForm.secondBox.value;   document.autoSumForm.thirdBox.value = (one * 1) + (two * 1); } function stopCalc(){   clearInterval(interval); } </script> this is the html code <form name="autoSumForm">   <input class="right" type=text name="firstBox" value="" onFocus="startCalc();" onBlur="stopCalc();"><br...

iOS 5 Creating eCommerce with Shopping Cart App Part 1

[Created 11-28-2012] it seems like there are tons of tutorial ios and xcode for beginner out there. you can view the list at my post here http://javalearning-adventure.blogspot.com/2012/11/learning-xcode.html that's the link that i always update if i find anything. this tutorial will consist of step by step in creating Shopping Cart App. There will be Browse Product, Shopping Cart, and Checkout Method. I will update these later after i satisfied with the end result. These tutorial will also include web programming using php. but these php will only using basic sample not the very complex with mysql database and everything. these php pages will only creating json output. i think you don't need to learn php and json. you should only learn how to handle json using objective-c. I am still a beginner in xcode and objective-c, its still only 1 month since i started these tutorial. requirements suppose to be iOS 5 with xcode 4. [i will update these later][postponed...

BlackBerry ListField Tutorial Part 3

This Part 3 will consist of Networking, ListField, JSON and Thread. I'm really sorry for pending this part 3. I've been busy making money and still failed. Its just really hard to live in third world country by coding. anyway, There are few Library that you will need creating ListField with JSON data, but we wont touch that area first. we need to learn the basic. * note added : Aug 26 2013 The basic should be : Networking Thread ListField [if i find anything, will be add here]