Description of the application "Up routing with node.js, express, bootstrap & ejs!"
Website Pages Routing with Node.js, Express, Bootstrap and EJS
Dependencies
body-parser@1.18.3
cookie-session@1.3.2
ejs@2.6.1
express@4.16.3
Librairies css & javascript
bootstrap@4.1.3
jquery@3.3.1
popper.js@1.14.4
Structure Project in the package "up-routing-node.js-express-ejs"
-- dist
-- css
-- bootstrap.min.css
-- bootstrap.min.css.map
-- js
-- bootstrap.min.js
-- bootstrap.min.js.map
-- umd
-- popper.min.js
-- popper.min.js.map
jquery.min.js
jquery.min.map
-- styles
-- css
-- style.css
-- images
-- favicon.ico
-- logo.png
-- views
-- about.ejs
-- contact.ejs
-- index.ejs
-- include
-- footer.ejs
-- head.ejs
-- nav.ejs
-- scripts.ejs
-- routes
-- index.js
-- app.js
-- package.json
-- package-lock.json
-- node_modules
Install and Start
In command line:
• To install the application
> npm install up-routing-node.js-express-ejs
• To install the packages
> npm install
• Create an app.js file and copy in
> require ('up-routing-node.js-express-ejs');
• To start the application that will be available from your browser at localhost:8080
> node app.js