GithubHelp home page GithubHelp logo

espressoyang / node-express-mongoose-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from madhums/node-express-mongoose-demo

0.0 2.0 0.0 1.46 MB

A simple demo app in node.js using express, mongoose, passport.js for beginners

Home Page: http://nodejs-express-demo.herokuapp.com/

License: MIT License

JavaScript 96.88% CSS 3.12%

node-express-mongoose-demo's Introduction

Build Status Gittip Dependencies Code climate

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

node-express-mongoose-demo's People

Contributors

anto-acube avatar bazh avatar birsi avatar chaschev avatar gotjosh avatar madhums avatar panzhangwang avatar pawe avatar recodify avatar yoshuawuyts avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.