This example records a development process:
1) refer to Meteor React Tutorial Tutorial Https://www.meteor.com/tutorials/react/creating-an-app
2) ...
----------------------------
The first section creates scaffolding projects
1, in Win10, install Meteor 1.4.2;
2. Enter the command (CMD) prompt, create a directory X:\zeng, create an empty project under this directory, create a "eccom" project using meteor creation eccom;
There is an infrastructure in the project to open content:
Three listings 1) client included: Client/main.js,client/main.html,client/main.css
2) Server includes: Server/main.js
3). Meteor (configuration directory for Meteor Project)
4) Package.json file, the entire project basic information with package configuration.
5). gitignore file
3, enter the X:\zeng\eccom directory, execute the command meteor namely Meteor run;
(if it is a high version, it can be "Meteor run--release 1.4.2" to specify a specific version number)
4. Successful operation, you can view the results in the browser. http://localhost:3000
Part II: Development of the client, mainly in the \client directory
1. Install React React-dom, execute: Meteor npm install--save react react-dom
A \node_modules directory will be generated, and the NPM installed node package (and the dependent package pkg) is placed here. (not a dedicated package for meteor.) )
2. Modify the client/main.html code as follows:
<title>eccom</title>
<body>
<div id= "ecapp" ></div>
</body>
3.
Sample development process record: Meteor,react,apollo