Coder Social home page Coder Social logo

node-mongo-demo's Introduction

Node-Mongo-Demo

UPDATE 2021: Bleeding edge technology is a category of technologies incorporating those so new that they could have a high risk of being unreliable and lead adopters to incur greater expense in order to make use of them. This is the case of this demo, at the time it was created, NPM was relatively new, there wasn't any vulnerability check, libraries used to be more consolidated and smaller. Nowadays packages like Express become so big that were broken into pieces, with several people working in different parts, code structure changed drastically thus making this project impossible to maintain. I believe there should be a new demo using the latest Node.js technologies, but boy, that takes time, and time is money. If you want to help to create a new version of this project, you could help here.

Deprecated info:

A complete, working and MIT licensed Node.js-MongoDB CRUD App that uses most common and useful Node.js modules and Bootstrap front-end framework, designed to understand how to create and develop a Node.js-MongoDB project with the aim to give a cornerstone for future projects to any developer...

Notice: This demo app was developed on Apr 11, 2014, since then, many updates and upgrades for almost all libraries have been taken place, this demo app still working and running and it still relevant today. Please read the update information at the end of the document.

Install

Install this demo running this commands on your termial:

git clone https://github.com/rodrigopolo/node-mongo-demo.git
cd node-mongo-demo
npm install

Setup

  • Copy the config_sample.js to config.js.
  • Edit config.js and set your own configurations:
    • Create a Google Maps API Key and add your key on the config.js file.
    • Set your default user account.
    • Set your prefered Nodemailer transport for "Password Recovery Email Notifications".
  • Save the file and run.

Run

On every OS you can set some environment variable to override the config settings, this is usefull when you want to deploy your project into a production area or change the app ports, there are many different ways to set an environment variable and then run you node app, here some different ways for each OS:

Linux/Unix/OSX

PORT=8080 && NODE_ENV=production && node app.js

or

export PORT=8080
node app.js

Windows:

set PORT=8080 && set NODE_ENV=production && node app.js

or In Windows PowerShell

$env:PORT = 1234
node app.js

Donations

PayPal

License

(The MIT License)

Copyright (c) by Rodrigo Polo http://RodrigoPolo.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

node-mongo-demo's People

Stargazers

 avatar RyanM avatar lemon avatar Stanislav avatar jordan gabory avatar Lattapon Yodsuwan avatar Loi Ho avatar Omar avatar Rafael Magalhaes avatar FAFO avatar Jon avatar Yair avatar alexouyang avatar Adrian Lambrese avatar Weslley Henrique Cavalcante avatar Hailton Silva avatar David avatar  avatar

Watchers

Edwind Contreras avatar Rodrigo Polo avatar  avatar Rafael Magalhaes avatar  avatar  avatar

node-mongo-demo's Issues

npm start error - ubuntu 14.04 32 bit

npm ERR! Linux 3.19.0-32-generic
npm ERR! argv "/home/me/.nvm/versions/node/v4.4.4/bin/node" "/home/me/.nvm/versions/node/v4.4.4/bin/npm" "start"
npm ERR! node v4.4.4
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-mongo-demo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-mongo-demo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-mongo-demo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

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.