Book Image

Build Applications with Meteor

Book Image

Build Applications with Meteor

Overview of this book

This book starts with the basic installation and overview of the main components in Meteor. You’ll get hands-on multiple versatile applications covering a wide range of topics from adding a front-end views with the hottest rendering technology React to implementing a microservices oriented architecture.All the code is written with ES6/7 which is the latest significantly improved JavaScript language. We’ll also look at real-time data streaming, server to server data exchange, responsive styles on the front-end, full-text search functionality, and integration of many third-party libraries and APIs using npm. By the end of the book, you’ll have the skills to quickly prototype and even launch your next app idea in a matter of days.
Table of Contents (16 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
8
Build a Chatbot with Facebook’s Messenger Platform

Creating the project structure


Ctrl + Alt + T will open the terminal, change the directory to the desired location, create a shopping cart app with the meteor CLI, and install all the required packages.

Copy the following commands serially to create the app and install the packages:

>> meteor create shopping_cart
>> npm install
>> npm install react --save
>> npm install react-dom --save
>> meteor add react-meteor-data
>> npm install --save react react-addons-pure-render-mixin

Starting from the client side, let's delete all the default folders and create the following files and folders:

How to structure your app is completely up to you. For quick prototypes, you can use the defaults and just add more into the directories or, if you have a favorite open source project and you like its setup, you can copy the design from it. However, in real life, how the app is architected can depend on many factors. Often, we work on a mixture of new and legacy code and sometimes...