Required tools :
1) Babun/Cygwin
4) Express-generator
a. $
pact install npm (if using babun)
b. npm install express-generator –g (To install express)
c. express –h (To display command options)
d.
express
showtrackr (creates
an express app)
e.
Then install dependencies
i.
cd showtrackr
ii.
npm
install
iii.
Run the app: npm start and
Configuring MongoDB on
windows 7
Ø Cd
to node_modules
Ø node_modules>
npm install mongodb
(we should have the
node_modules/mongodb
folder available)
Hotfix for mongodb is available here:
To
start Mongo DB service:
Ø Net
start mdb27017 (27017- default mongoDB
port)
Can be checked in windows services(Windows key-> search 'services'->Search for MongoDB Services as shown below )
NOTE:
Check
list/ solutions for errors during installation:
ii ) If we encounter below error:
Then,
npm install -g node-gyp
git clone https://github.com/mongodb/js-bson.git
cd js-bson
npm install
node-gyp rebuild
or
In the MongoDB/node_modules, search
bson
= require('../build/Release/bson');
and in catch
block change to
bson = require('../browser_build/bson');
Note: To start MongoDB
In windows cmd promt:
cd to bin of MongoDB
Ø Mongo.exe
Ø Use
<DBname>
Ø Show
< DBname >
Thanks for posting such a nice blog.
ReplyDeleteFull Stack Training in Hyderabad
Full Stack Training in Ameerpet