DevOps

The key to get your app running on the cloud. FAST.

Share this post:

This blog post is an update to a post written by Priya Aswani on the DevOps Services blog in May 2015.


IBM Bluemix Continuous Delivery, which is one of the DevOps services on Bluemix, allows for integrated agile planning, coding, building, deploying, and collaborating with your team. You can get your app running on the Bluemix cloud within minutes. Continuous Delivery provides a very strong infrastructure to support your coding needs. It’s a great way to increase your workplace productivity and reliability. Here are a few tips, tricks and hidden gems that can help you get coding at lightning speed. Discovering these valuable nuggets can enable you to get work done faster and make coding and life easier. It’s all about cutting out the nonsense and getting you up and running in the shortest amount of time. The time saved will be appreciated by you, your boss, your team and your clients.

Do you ever wish that the code editing tool you use could complete the code for you? A world where code writes itself. The Eclipse Orion Web IDE content assist feature gets us one step closer to that world. There are some really neat updates made to the online code editor that are bound to shave a few minutes off your work day and save you from getting a few gray hairs. One smart feature in the Web IDE is content assist, which helps you write code faster and more efficiently.

Create a manifest.yml file in just one shortcut key

Hot off the press! A quick shortcut to create a new manifest.yml file is to first create the file, then press CTRL+Space in the new file that you just created. Try it!

One of the main files used when deploying an app on Bluemix is the manifest.yml file. By using an application manifest, you reduce the number of deployment details that you must specify every time you deploy an application to Bluemix. In application manifests, you can specify options such as the number of application instances to create, the amount of memory and disk quota to allocate to applications, and other environment variables for the application. You can also use application manifests to automate application deployments. The default name of a manifest file is manifest.yml.

Auto-completion

You can quickly create the manifest with one shortcut, and then you can take it one step further.  You can use content assist auto-completion to add missing fields, to help you craft the manifest.yml file correctly.

Content assist auto-completion provides you with a list of accessible keywords based on the programming language chosen (in conjunction with specifications, variables, methods, data types, etc.). Specifically, the JavaScript content assist code templates/snippets allows for JSDoc formatted comments, parameters, RegExp literals and object type assistance as well as built-in indices. You can also create rules to create ESLint Directives that can allow you to detect empty blocks of code (new no-empty-block rule) which is indicated through an error notification. Similar characteristics exist for throw error-objects. Content assist can help with setting up an environment, enabling or disabling rules, and unclosed / incomplete comment blocks while parsing your source.

Syntax Highlighting

The Web IDE editor makes coding easier with content assist as well as syntax highlighting. Programming languages supported include: HTML, CSS, JavaScript, Ruby, and Python. When using JavaScript, the Web IDE supports syntax and semantic checking as well. The editor will check your code and indicate where you might run into issues and may need to debug before you execute the code. It can also mark occurrences of variables and other coding elements.

Happy Hacking with Bluemix!

More DevOps stories
October 15, 2018

A Quick Guide to Redis Lua Scripting

In this post, we'll introduce Lua scripting for Redis, making sure that all the commands work with IBM Cloud Databases for Redis.

Continue reading

October 15, 2018

Add Custom Domain and TLS Certificate to Your Secure Cloud App

Secure your cloud app end to end. Use a custom domain with TLS certificate for apps deployed on IBM Cloud Kubernetes Service.

Continue reading

October 12, 2018

Querying the IBM Cloud Databases API from the Command Line

Querying APIs can look like a lot of complex and hard work at times. Sometimes the best way to explain things is to show, and in this article, we're going to show the process of querying the API of the just-launched IBM Cloud Databases.

Continue reading