Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Deploying Web Applications Generated by Yeoman on Bluemix

DZone's Guide to

Deploying Web Applications Generated by Yeoman on Bluemix

How to easily deploy apps from the popular scaffolding tool.

· Cloud Zone
Free Resource

Deploy and scale data-rich applications in minutes and with ease. Mesosphere DC/OS includes everything you need to elastically run containerized apps and data services in production.

My colleague Ryan Baxter pointed me to a nice tool to set up new web applications. The tool is called Yeoman, the "web's scaffolding tool for modern webapps". The tool helps especially developers who often create prototypes and first iterations of new projects. 

Yeoman generates the base structure for web applications which use client side frameworks like Angular, Backbone, React and many others which connect to server side services typically via REST APIs. The result of running Yeoman generators are directories with JavaScript, HTML and CSS files, dependencies and other resources which can be run easily on a web server that comes with Yeoman. 

To learn more I suggest to read and follow the simple tutorial. The generated code is also on GitHub

In order to run the generated web application in a web browser invoke these commands from the command line: 

npm install 

bower install 

grunt serve 

In order to deploy the application to Bluemix you should create a manifest file in the root of the project with your Bluemix application name and host. 

The manifest uses the Cloud Foundry staticfile-buildpack. To deploy the application invoke the following commands: 


grunt build 

cf push -s cflinuxfs2

Discover new technologies simplifying running containers and data services in production with this free eBook by O'Reilly. Courtesy of Mesosphere.

Topics:
deployment ,bluemix ,cloud

Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}