An organized template, using node.js, express, mongodb, bower, and gulp to create a passport/bcrypt authenticated log-in/sign up website with blog posting/commenting.
All instructions for setup and local development are listed in this blog post here.
To use this template as it is, you can git clone the repo:
git clone https://github.com/huyle333/node-express-mongo-bower-gulp-template
We go into the directory and install npm and bower dependencies and set up gulp.
cd node-express-mongo-bower-gulp-template npm install && bower install && gulp
Now that we have all the files, to develop on this template locally, you should have 5 terminals/terminal tabs open.
- 1st terminal:
mongod --dbpath data/
- 2nd terminal:
- 3rd terminal:
- 4th terminal:
- 5th terminal:
Extra terminal for miscellaneous commands.
npm start, you can open a web browser and visit http://localhost:3000 to see your locally developed website.