Nodejs IBM Bluemix General Availability
Nodejs IBM Bluemix General Availability
<img src=‘https://developer.ibm.com/bluemix/wp-content/uploads/sites/20/2014/06/blueMixNowOpen1.png’></img>
It’s here! Today marks the general availability of IBM Bluemix, our open cloud platform intended to facilitate rapid development of applications in the cloud. With more than 50 services and flexible, pay-as-you-go pricing, the GA adds a lot of new functions since our last beta refresh at the end of May. Below, I’ll give you a glimpse of all of the cool features that are live and available right now.
Pricing and Free Accounts
Ok, let’s get the business part of this out of the way right up front — basic accounts remain free. If you don’t already have an account, you can just go to www.bluemix.net, register, and get free instant access to a 30-day trial without a credit card.
After registration, you’ll start with a trial that allows you to build apps and add services at no charge. When the trial is over, you’ll continue to have access to freebies and you’ll pay only for what you use above and beyond that. You’ll have a lot of flexibility to choose the runtime usage levels and service plans that best meet your needs as shown on the new Bluemix Pricing page.
Solutions & New Services
Bluemix is about helping you quickly compose building blocks to solve your problems. With that in mind, we’re providing Solutions Pages to inform you about the extensive number services in these major categories:
■Web and Application ■Integration ■Big Data ■Open Cloud
■Mobile ■Data Management ■Business Analytics
■DevOps ■Security ■Internet of Things
The list of services in these areas keeps growing. Today, 7 new services have been made available to aid with business analytics, dev ops, internet of things, and security:…
https://developer.ibm.com/bluemix/2014/06/30/general-availability/
Node.js IBM Bluemix General Availability
今天标志着IBM Bluemix的正式发布。这是一款开放的云平台,旨在促进云端应用程序的快速开发。自今年五月末的最后一次Beta更新以来,GA(General Availability)带来了超过50项服务以及灵活的按需付费定价模式。下面,我将向你展示所有现在可用的新功能。
定价与免费账户
首先,让我们谈谈业务方面。基本账户仍然是免费的。如果你还没有账户,只需访问 www.bluemix.net,注册后即可立即获得一个30天的试用期,无需信用卡。
注册完成后,你将从一个试用计划开始,可以构建应用并添加服务而不产生费用。当试用期结束后,你将继续享有免费服务,并且只会为超出部分付费。你可以根据自己的需求选择不同的运行时使用级别和服务计划,详情可以在新的Bluemix定价页面上查看。
解决方案与新服务
Bluemix致力于帮助你快速组合构建块来解决你的问题。为此,我们提供了解决方案页面,以帮助你了解这些主要类别的众多服务:
-
Web和Application
-
Integration
-
Big Data
-
Open Cloud
-
Mobile
-
Data Management
-
Business Analytics
-
DevOps
-
Security
-
Internet of Things
这些领域的服务列表不断增长。今天,有7项新服务可供使用,分别用于业务分析、DevOps、物联网和安全等方面。
示例代码:创建一个简单的Node.js应用
以下是一个简单的Node.js应用示例,展示了如何在IBM Bluemix中部署一个Web应用。
// app.js
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello, IBM Bluemix!');
});
const port = process.env.PORT || 3000;
app.listen(port, () => {
console.log(`Server running on port ${port}`);
});
在这个例子中,我们使用Express框架创建了一个简单的Web服务器。该服务器监听端口3000,并返回一条欢迎信息。
部署到Bluemix
为了将此应用部署到IBM Bluemix,你需要创建一个manifest.yml
文件,如下所示:
applications:
- name: my-nodejs-app
path: .
memory: 128M
instances: 1
domain: mybluemix.net
buildpack: nodejs_buildpack
然后,你可以使用命令行工具cf
来部署应用:
cf login -a https://api.ng.bluemix.net
cf push
通过以上步骤,你就可以在IBM Bluemix上成功部署并运行你的Node.js应用了。
Node.js IBM Bluemix General Availability
今天标志着IBM Bluemix的正式发布,这是一个旨在促进云上快速应用开发的开放云平台。自今年5月底的最后一个Beta版本以来,GA(General Availability)已经添加了许多新功能。
定价与免费账户
首先,基础账户仍然是免费的。如果你还没有账户,可以前往 www.bluemix.net 注册,并立即获得一个无需信用卡的30天试用期。
注册后,你可以使用试用账户来构建应用并添加服务而不收取任何费用。试用期结束后,你将继续享有免费的服务,并且只为你使用的额外资源付费。你可以根据需要选择不同的运行时级别和服务计划,更多详情可以在新的Bluemix定价页面中查看。
解决方案与新服务
Bluemix的主要目的是帮助你快速组合各种构建块来解决你的问题。因此,我们提供了解决方案页面,以帮助你了解这些主要类别的服务:
-
Web和Application
-
Integration
-
Big Data
-
Open Cloud
-
Mobile
-
Data Management
-
Business Analytics
-
DevOps
-
Security
-
Internet of Things
这些类别的服务列表一直在增长。今天,新增了7项服务,用于业务分析、DevOps、物联网和安全等方面:
// 示例代码:创建一个新的Node.js应用,并连接到一个服务
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello, Bluemix!');
});
// 启动应用
const port = process.env.PORT || 3000;
app.listen(port, () => {
console.log(`App started on port ${port}`);
});
以上代码展示了如何创建一个简单的Node.js应用,并通过Express框架来处理HTTP请求。在实际部署时,你需要将此应用部署到Bluemix平台上,并可能需要连接到特定的服务,如数据库或API网关等。