A simple demo app in node.js using express, mongoose, passport.js and jade for beignners
JavaScript CSS HTML
Switch branches/tags
Nothing to show
Pull request Compare This branch is 4 commits ahead, 240 commits behind madhums:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
lib
public
test
.drone.yml
.gitignore
.jshintignore
.jshintrc
.travis.yml
CONTRIBUTING.md
LICENSE.txt
Procfile
README.md
nodemon.json
package.json
server.js

README.md

Build Status Gittip Dependencies Code climate Gitter

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 app

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 simply copy config/env/env.example.json to config/env/env.json and just replace the values there. In production, 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 env variables for the imager config.

$ export IMAGER_S3_KEY=AWS_S3_KEY
$ export IMAGER_S3_SECRET=AWS_S3_SECRET
$ export IMAGER_S3_BUCKET=AWS_S3_BUCKET

then

$ npm start

(Note: When you do npm start, NODE_PATH variable is set from package.json start script. If you are doing node server.js, you need to make sure to set this)

Then visit http://localhost:3000/

Tests

$ npm test

License

MIT