Production Level Knowledge & Tips

  1. 未分類
  2. 22 view

[Javascript][Meteor.js]Install and Hello World

meteor

Meteor.js

Meteor.js is one of Javascript server side framework.
It is based on Node.js, but it’s completely different from Node.js.
It allows us to connect client side and server side with seamless.
Surprising part is that we can write client and server side javascript as one file.
Please check official website to check detail explanation.

Target

I’ll try to install and make a simple app.

Environment

  • OS
    • Linux version 3.2.0-64-generic (buildd@kissel) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #97-Ubuntu SMP Wed Jun 4 22:04:21 UTC 2014
  • Meteor.js
    • 1.0.3.1

Install

It’s very easy. Just type following command.
curl install.meteor.com | /bin/sh
meteor --version

Hello World!

This is also very easy.
Just type following commands.
$ meteor create hello
hello: created.

To run your new app:
  cd hello
  meteor
$ cd hello
$ meteor
[[[[[ ~/work/test/hello ]]]]]

=> Started proxy.
=> Started your app.

=> App running at: http://localhost:3000/
meteor-hello
Let’s take a look at the page.
Directory organization is also simple.
$ tree
.
├── hello.css
├── hello.html
└── hello.js

0 directories, 3 files

You can check client and server side source code with looking at hello.js contents.

未分類 recent post

  1. Install sbt 1.0.0 and run sample template

  2. Visualization of Neural Network and its Train…

  3. [Machine Learning]Created docker image includ…

  4. [Node.js]How to write batch script with Node.…

  5. [Hive]Get top n items for each category

関連記事

PAGE TOP