An example project done as part of learning node.js, monk and jade
User can find and share blog with each other.
-
Install node.js
-
Install MongoDB
-
Save in MongoDB/bin/
mongobatch.bat
.// Replace mongoDBPath with your local MongoDB path mongod --directoryperdb --dbpath mongoDBPath\data\db --logpath mongoDBPath\log\mongodb.log --logappend --rest –install
-
Run
mongobatch
and mongoDB client$ mongobatch $ mongod
-
Run mongodb shell script to create database and records.
// Setup db and collections in mongodb $ mongo < localPath/myscripts.js
-
Copy the repository files to local folder.
-
Install dependencies in
package.json
$ npm install
-
Start the server.
npm start
-
If you get the following error, find the solution here
var skinClassName = 'Skin' + NativeClass.name; ^ TypeError: Cannot read property 'name' of undefined
-
Open localhost:3000.