プログラミング + アカデミック + 何か面白いこと

  1. Programming
  2. 23 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/

Let’s take a look at the page.
meteor-hello

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.

Programming recent post

  1. Install sbt 1.0.0 and run sample template

  2. [Machine Learning]Created docker image includ…

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

  4. [Play][Scala]Develop Request Driven Batch Usi…

  5. [OpenCV][Ruby]Auto check web page design corr…

関連記事

PAGE TOP