Ionic + node. js + MONGODB Development Environment installation (Windows and iOS systems)

Source: Internet
Author: User
Tags install node

1. Windows environment.

1. Visual Studio Code. As a source code editor, you can download from Visual Studio code here, and note that the Windows version is selected.

2.   Mongodb. Used as a background database. Click here to mongodb official download link. You can select either MSI or archive versions.

2.1 Add the MongoDB Bin directory to the Windows environment variable. Archive version is extracted directly, locate the bin directory, locate the installation directory after the MSI version is installed, locate the bin directory, and then add the directory to the Windows environment variable. Use C:\MongoDB as a directory for MongoDB here.

2.2 Create a MongoDB config file, the path is C:\MongoDB\mongo.config.

Copy the following content to C:\MongoDB\mongo.config

# #store Data here

Dbpath=d:\mongodb\data

# #all Output Go here

Logpath=d:\mongodb\log\mongo.log

# #log Read and write operations

Diaglog=3

2.3 Install the MongoDB service. Open the command line: Mongod--config D:\mongodb\mongo.config--install (provided the MONGO Bin directory has been added to the Windows environment variable). Then enter: services.msc on the command line, open Service management, and locate the MongoDB service. Click to run.

3. Install Python. Official Python download

4. Install node. js. node. JS Official Download

5. Install Git. Used to do version control. Git official download, note Select Windows version

The following 2 items are optional installation items

6. Install Robo 3T. Robo 3T official download, as a client of MongoDB, you can view MongoDB data. More Convenient

7. Postman.  Postman official downloads are used to test Restful Service. Select the version of Windows.

2. iOS environment

1. Visual Studio Code. As a source code editor, you can download from Visual Studio code here, and note that the Mac version is selected.

2.   Mongodb. Used as a background database. Click here to mongodb official download link. Choose Mac version here.

2.1 Add the MongoDB Bin directory to Mac Path (an environment variable similar to the window System). Zip package unzip directly, find the bin directory, and then add the directory to Mac Path here using/users/your Mac account name/mongodb as the MongoDB directory.

Scenario a detailed step:

Open the Mac terminal (click on Keyboard F4 (will open Launchpad), open the folder ' other ', at this point you can see the terminal icon and click it), enter the command open. Bash_profile

A text editing window opens, adding the directory/users/your Mac account name/mongodb/bin to path. Use ":" to separate

The PATH format for Mac is: Export Path=${path}: < directory 1>:< Directory 2>:< directory 3> This format don't be mistaken


Start MONGO DB, open terminal, enter: Mongod--dbpath/users/your Mac account name/mongodb/data/db.

Scenario Two: If you set the path to fail, you can also run MongoDB by entering the following command in the terminal. Just need to run it manually every time you boot:

Export path=/users/your Mac account name/mongodb/bin: $PATH

Mongod--dbpath/users/your Mac account name/mongodb/data/db

Or you can save the above two lines of command such as Start_mongo.command file, each boot directly after the start MongoDB.

(PS: How to boot the MAC system automatically every time MongoDB, I have not found the program, if there is know classmate, welcome message enlighten)

3. Install Python. Python official download Please select Mac version

4. Install node. JS node. JS official Download Please select Mac version

5. Install Git. Used to do version control. git official download, please select Mac version

The following 2 items are optional installation items

6. Install Robo 3T. Robo 3T official download, as a client of MongoDB, you can view MongoDB data. Please choose the Mac version, more convenient

7. Postman.  Postman official downloads are used to test Restful Service. Select the Mac version.

Ionic + node. js + MONGODB Development Environment installation (Windows and iOS systems)

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.