Setup development environment on Windows 7 碎碎念
自从有了mac,我的windows本早已沦为游戏机。鉴于这次只带了windows小本回国,于是只好开始在windows电脑上配置开发环境。
Preparation:
Upload wip code onto Github
Tools:
- Cygwin64
- SourceTree
- Lantern vpn (in order to access Google…)
Install Cygwin64
- Download Cygwin64 from https://cygwin.com/install.html
- Run the execution file to install.
- Select ‘download and install’
- Choose a download url
- Select packages want to install, such as git, python, php etc…
- Done
Install Node:
- Download node from https://nodejs.org/
- Run the installer and follow instructions
- Open command prompt, check ‘node -v’ and ‘npm -v’
Install MongoDB
- Download MongoDB from https://www.mongodb.com/download-center?jmp=nav#community. I choose Windows Vista without SSL support.
- Run the installer. By default it will be installed to C:\Mongodb
- Create folder data under Mongodb and create folder db under folder data.
- Navigate to bin folder under Mongodb. Run ‘mongod –dbpath “c:\MongoDB\data\db” –storageEngine=mmapv1’ and check if it successfully starts mongodb.
Note: Only get it working using command prompt. When using Cygwin64, it throws error ‘cannot find command mongod’.