Reactive programming and data in Meteor.js
Meteor uses NoSQL document-oriented storage and it comes by default with Mongo DB. The name comes form the word "humongous", meaning extremely large. The database is part of a NoSQL database family, meaning, it does not store the data as traditional relational databases. Mongo DB persists the date in a JSON-like document format, making the integration with JavaScript-based frameworks a lot easier. In this recipe, we are going to see how to use the database from Meteor, and how data access is orchestrated.
Getting ready
There is an icon.png
image in the example files; besides that, only Meteor is needed to be installed on your machine and to have an open command line.
How to do it...
First we can start by creating the application named
movies
from the command line:>meteor create movies
To simplify the generated structure, we will create two folders: one called
server
and another calledclient
. Themovies.css
,movies.js
, andmovies.html
files can...