May 2017
Intermediate to advanced
388 pages
7h 30m
English
On the server-side, we have two files: index.js and insertData.js. There is also a private folder where we can define sample data that we can work with. Meteor will treat the private folder as an assets folder and will not bundle it with the rest of the execution code, which makes it a perfect place to have the test data.
In the private folder in file, products.json will have the following fields:

The fields of the Products collection are as follows:
id: This is the product ID.
title: This refers to a product title.
price: This is the price per unit.
inventory: This is the currently available product inventory ...
Read now
Unlock full access