A simple demo app using express, mongoose, passport for beginners
Switch branches/tags
Nothing to show
Clone or download
madhums Merge pull request #309 from madhums/greenkeeper/mongoose-5.0.0-rc0
Update mongoose to the latest version πŸš€
Latest commit f0763e8 May 29, 2018

README.md

Build Status Dependencies Code climate Greenkeeper badge Join Gitter Chat Gittip

Nodejs Express Mongoose Demo

This is a demo node.js application illustrating various features used in everyday web development, with a fine touch of best practices. The demo app is a blog application where users (signing up using facebook, twitter, github and simple registrations) can create an article, delete an article and add comments on the article.

Boilerplate

Want to build something from scratch? use the boilerplate

Requirements

Install

$ git clone git://github.com/madhums/node-express-mongoose-demo.git
$ npm install

NOTE: Do not forget to set the facebook, twitter, google, linkedin and github CLIENT_IDs and SECRETs. In development env, you can set the env variables by doing

cp .env.example .env

and replace the values there. In production env, it is not safe to keep the ids and secrets in a file, so you need to set it up via commandline. If you are using heroku checkout how environment variables are set here.

If you want to use image uploads, don't forget to set these env variables for imager config.

IMAGER_S3_KEY=AWS_S3_KEY
IMAGER_S3_SECRET=AWS_S3_SECRET
IMAGER_S3_BUCKET=AWS_S3_BUCKET

then

$ npm start

Then visit http://localhost:3000/

Tests

$ npm test

License

MIT