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...

writing again

recently after 2 years.... not touching java... ive began to learn it once again. well apparently my friends need to mastering java to get a freaking job. so i just accompany him. i was supposed to do some tutor but i cant do a god damn tutor. me. myself is always learning alone. don't know how to teach someone else to become ME. so i just decide to accompany him instead doing nothing. to make everything start, i have to get some developers kit. so we need netbeans for Development Toolkit. but i don't know how to use NetBeans and i don't know anything bout NB and i don't find any good tutorial for a very beginner in programming. so we buy books. and then again the books not for beginner but still is good enough for me. after this we found www.java2s.com. its almost like a help tools and good thing is everything is so basic and easy to understand. now we used the books from the store and for the help tools encase we don't know anything about something that comesout f...