/BlogApp

A Blog App for all

Primary LanguageHTML

BlogApp

This is a full-stack blog app, also appropriately illustrating the concept of restful routes. This app is created using MEN(MongoDB, express.js, node.js) Stack.

Tools and dependencies:

  1. Node.js
  2. MongoDB
  3. CSS

Dependencies:

  • "body-parser": "^1.18.3",
  • "ejs": "^2.6.1",
  • "express": "^4.16.4",
  • "express-sanitizer": "^1.0.4",
  • "method-override": "^3.0.0",
  • "mongoose": "^5.4.0"

View it at : https://desolate-retreat-25693.herokuapp.com/blogs

Beginners Please note:

The views directory of the repo contains ejs files (Embedded JavaScript), which is nothing, but HTML files where we can write javascript inline to elements, without explicitly using the script tag. partials sub-directory contains the header and footer files, which form the boilerplate of the HTML file. Enjoy!!!

To run the project on local machine:

  1. Clone/download the repository.

  2. in the directory of the project, execute the following commands:

    * npm install express ejs body-parser method-override express-sanitizer mongoose --save 
       
    * node app.js
    
  3. Then in the local browser, run localhost:8080

Star it if you like it :D