maaxeasy / blog-express-mongo

A blog website created by Node.js, Express.js and mongoDB on built-in Ubuntu workspace in the cloud. Utilize full CRUD operation and Auth.

Home Page:https://stormy-meadow-40256.herokuapp.com/blogs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blog-app (10/2017)

Description:

A simple blog app where anybody can write down anything helpful so everyone can view. Fully implemented and user experience improved by security authentication and authorization.
Built in cloud9 - a powerful online code editor with a full Ubuntu workspace in the cloud.

Setup MongoDB

  • If built with cloud 9
  • If built locally and run with real mongoDB, you need to have (https://mlab.com) account and name your database blog (for example) as well as dbuser and dbpassword:
mongoose.connect("mongodb://dbuser:dbpassword@ds000000.mlab.com:00000/blog", {useMongoClient: true});

NPM Install

npm install  
node app.js
  • express (Server-side Javascript)
  • ejs (Embedded Javascript)
  • express-sanitizer (middleware after initilize body-parser for node-validation)
  • body-parser
  • mongoose (mongoDB for Express version)
  • method-override (used for method PUT and DELETE in RESTful ROUTE that form type in cliend-side doesn't support
  • connect-flash (middleware: store message displayed for user once and cleared after page being refreshed)
  • passport
  • passport-local
  • passport-local-mongoose
  • express-session

Inspired by Steel Colt - Web Development Bootcamp in Udemy

About

A blog website created by Node.js, Express.js and mongoDB on built-in Ubuntu workspace in the cloud. Utilize full CRUD operation and Auth.

https://stormy-meadow-40256.herokuapp.com/blogs


Languages

Language:JavaScript 53.3%Language:HTML 44.9%Language:CSS 1.8%