MEAN stack Installaion on windows

MEAN Stack installation on first time on my computer (Windows)

1. Check ‘ Visual C++ 2015 ‘ is installed
2. Download node.exe and install to run ‘npm’ command in CMD (http://blog.teamtreehouse.com/install-node-js-npm-windows)
3. Download mongodb.exe and install it (http://stackoverflow.com/questions/20796714/how-do-i-start-mongo-db-from-windows)
4. Create the following folder
C:\data\db

5. cd to C:\Program Files\MongoDB\Server\3.2\bin>
enter command mongod
by default, mongodb server will start at port 27017
else use
mongod –journal –storageEngine=mmapv1
6. download RoboMongo and install it.

7.
Download a mean stack project from (https://github.com/cornflourblue/mean-stack-registration-login-example) and put it your system any where.
8. Open CMD – go to your project files folder (http://expressjs.com/en/starter/installing.html)
Therse will be a server.js file in meanstack project run that using
node server.js
Then they will provide a localhost with port number
If any error coming install each module using
npm install modulename

9. Open Browser and take the project using localhost:portnumber

10. In server.js
app.set(‘view engine’, ‘ejs’);
app.set(‘view engine’, ‘jade’);

Use can use any of these type files for view codes..

Thanks

Be the first to comment

Leave a comment

Your email address will not be published.

*