Template project for Node.js with Express
Overview
If you are building node.js applications, you may need some template project to start quickly and not to perform simple configuration every time. This configuration may contain access to MongoDB, security infrastructure and so on. My colleague Anton Dimkov has committed his template on Github. Also, the template can be installed with npm.
Features
- Configured simple routes for express
- Integrated MongoDB access with mongoose
- Integrated security with password hashing based on bcrypt-nodejs
- Login page
- Session management with express-session
- Logging with winston
- Integrated Angular and simple SPA front-end structure
- Bootstrap styles integrated
Installation and configuration
- Install Node.js according to the instructions at https://nodejs.org/
- Install and run MongoDB according to instructions at http://www.mongodb.org
- Download code from git hub
- Install all required modules by running
npm install
in terminal - Run application with
node www/bin
- Open http://localhost:9090/ in web-browser
Try this simple way to start using Node.JS correctly or to start a project.