Sample development process record: Meteor,react,apollo

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.