Template project for Node.js with Express
28 April 2015
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.
It also could be interesting to You
About reinvention of a wheel, Agile and Linux way
22 June 2022
How often in software development do you think about rewriting some 3rd party module from scratch? The popular vision of the problem says that we should not reinvent a wheel and use existing paid or…
“Why do people refuse to use WebRTC? Is it really its quality question?”
10 December 2020
As a CEO who has 15+ years of software development, I take part very often in the first call with our clients. Very often, I can hear something like “We should like to move away…