A skeleton for website development
Steps to create a "skeleton" website using the Express Application Generator tool
- npm install express-generator -g
- express ( You can also choose a view (template) engine using --view and/or a CSS generation engine using --css) example: express express-learning-tutorial --view=hbs
- cd express-learning-tutorial
- npm install
- npm install --save-dev nodemon
- Update the package.json with this code. "scripts": { "start": "node ./bin/www", "devstart": "nodemon ./bin/www" },
- On Windows, use this command: SET DEBUG=express-learning-tutorial:* & npm run devstart On Mac OS X or Linux, use this command: DEBUG=express-learning-tutorial:* npm run devstart or simply use npm run devstart
- Load http://localhost:3000/ in your browser and enjoy !!!