1, let's go first. Download a package file in the official GitHub:
Https://github.com/linnovate/mean
2, I put this file extracted after the file name mean, everyone notice my path:
Also is decompression, just decompression way not the same!
3, you go to download git software, baidu "git 1.9.4 download", so you can. (Share my link: http://url.cn/afyoLp)
4, you are in the mean folder, right-click "Git bash" to compile.
5, installation dependent: The following error message will appear afternpm install:
You don't have to worry about this, go straight to the next step.
6,bower install download here are those corresponding files: Css,js and so on.
7, a little introduction to the next MongoDB installation starts:
To the MongoDB official website download zip or msi file, I here to zip-based bar:
(1), create 1 folder data, and then build 2 folders inside Db,log(2), create a MongoDB.log in the log (build a TXT file and then change to this line)under the Mongodb/bin folder in E-drive (what disk do you choose)input: Mongod-dbpath e:\mongodb\data\dbsuccessfully started MongoDB (shared my link: http://url.cn/fNkGOO)(I also tried the configuration file, I intend to use net start MongoDB to start, but always said that the lock file is wrong or always can not link, so do not go blind, I resolved this morning.) )then go to the mean directory and right-click on git bash input node server.js localhost:3000 can show the project of this combo frame.--------------------------------------------due to time constraints, we will introduce the framework of mean today:1, our usual css,js,img these file paths:D:\mean\packages\system\server\views\includes Here is head.html foot.html, which writes the file path .D:\mean\packages\system\server\views\layouts This folder contains is defalut.html, write is the home page, and then all are loaded in. Here you just need to replace the html5.js with one of the domestic CDN: (the link will be better than if you put it locally, because I do not fully understand the path)Http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.jswhen the program starts, the mean framework automatically compresses the resource into a file, which is then automatically referenced, and if you need to refer to the resource yourself, you don't need to write the path as it was traditionally. D:\mean\packages\system\public\assets here is to put css,img file. The
content in public is angular. Controller is the director of the file, routes is the routing file, services is the backend server files, viewsare HTML files, tests is a unit test. I don't need to change environment variables here! details of the next time to continue to announce!
Mean combination frame Construction Tutorial