Use React-native to do a simple application-02 project Construction and operation

Source: Internet
Author: User

Next we start to do this project, because the beginner soon began to learn while doing, so some places design is not very reasonable. Please forgive us. 0.0

The following three folders are described in

Guokuapp: It's the folder where I developed the app.

GUOKUDB: Inside is the INSERT statement of my database document, where I use MongoDB.

Guokuserver: That's the server I wrote with node. js.

Let's take a look at the contents of Guokuapp:

--------------below is the SRC folder contents---------------------

The first one is the utility command line: $ react-native init guokuapp automatically generated file directory, I do not introduce more.

The second one is my src directory, Assets folder resource folder, components are their own packages, screens is the interface we see.

So how do I get this project to work?

First, clone my project from my GitHub.

git clone [email protected]:weifengzz/guoku.git

Second, use "NPM Install" Installation Dependency (premise: NPM)

Third, run MongoDB (premise: MongoDB installed)

Command "$./Mongod"

Then open a new window, enter the command: "$. Mongs"

Iv. inserting data into MongoDB:

Database operation statements I exist in these four folders are inserted in turn, each file is the front of the empty statement is the standard format, the following statement if not conform to this format do not insert, I used the horizontal line has been separated.

V. Run server node. JS (provided that node is already installed)

You can use the command "$node index.js."

Vi. final use of $react-native run-android

Or Xcode opens iOS to see the effects of Android and iOS respectively .

Directory

Project Download: Https://github.com/weifengzz/GuoKu

Use React-native to do a simple application-02 project Construction and operation

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.