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.
Let’s take a look at the page.$ 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/
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.