GithubHelp home page GithubHelp logo

nodecellar's Introduction

Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB

"Node Cellar" is a sample CRUD application built with with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB.

The application allows you to browse through a list of wines, as well as add, update, and delete wines.

This application is further documented here.

The application is also hosted online. You can test it here.

To run the application on your own Heroku account:##

  1. Install the Heroku Toolbelt

  2. Sign up for a Heroku account

  3. Login to Heroku from the heroku CLI:

     $ heroku login
    
  4. Create a new app on Heroku:

     $ heroku create
    
  5. Add the MongoLab Heroku Add-on

     $ heroku addons:add mongolab
    
  6. Upload the app to Heroku:

     $ git push heroku master
    
  7. Open the app in your browser:

     $ heroku open
    

nodecellar's People

Contributors

ccoenraets avatar jamesward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodecellar's Issues

Can't change the picture

I got problem when trying to change the picture. Tested with Chrome(win7)
How to upload image file using the the framework ?

What about security?

I've been digging through articles like this one to find a good backend solution for my front end web app I'm trying to build in ember.js. So far I've found a few solutions like Parse and FireBase but they all seem to have a big flaw when it comes to security, one requires that the keys to access the REST api be embeded in the app.js file and the other is just making post and get requests over to a URL without any sort of authentication. It seem like this is a pretty simple backend to get set up but I'm wondering how it does in terms of security. Can someone just go in and grab the code required to make posts to the mongodb database and potentially perform man in the middle attacks or injections of some sort? My app will be run on an SSL certificate since there is also a payment portion built on top of stripe but I'm not convinced that is going to be enough for this type of security vulnerability.

Can anyone shed some light on this topic for me?

Create unique filenames for the uploads, like record id or some guid

I’m trying to get the upload filenames to be the ‘record-id.jpg’, any idea what would be a good aproach to accomplish that. So instead of just the filename, i would like to tie it more to the created records, and make it unique.

Any help would be very appreciated!

Modular Views Grouping

I would like to arrange the views in a more modular manner by grouping them in folders. Like for users views I'll would like to do public/tpl/accounts/userAddView.html. This way I will place all views related to accounts/users like editing forms, password change etc.

How can we do something like that? Tried to hack code to implement the above but got stuck, I'll appreciate if someone comes to aid.

Thanks.

Missing mongodb dependency

87-95-100-192:nodecellar tero$ node server.js

module.js:340
throw err;
^
Error: Cannot find module 'mongodb'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/Users/tero/git/test/nodecellar/routes/wines.js:1:75)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)

Error entering new Wines

I am receiving the following error while trying to add wines....

Error An error occurred while trying to delete this item

Any suggestions?

Recommendation

Thank you for your work with nodecellar. However, to avoid confusion, shouldn't the routes folder be called controllers since that is what they are. Your routes are stored in the server.js file. I can pull this done and create a simple PR if you'd like.

Please add a license

I'd like to fork nodecellar and adapt it to some other JS libraries (with attribution of course). I don't see a license. I wouldn't proceed to my goal unless the source is covered with a suitable license such as MIT, BSD, or Apache 2. Thanks.

Crash when using analytic server (Socket.io)

When I use just the server.js version the example runs fine. However, when I run the serverwithanalytics.js version it crashes after I make my first request.

running:
Node v0.9.6
Express v3.3.4

http.js:641
    throw new Error('Can\'t set headers after they are sent.');
          ^
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:641:11)
    at ServerResponse.res.setHeader (/Users/ryan/dev/node/nodecellar/node_modules/express/node_modules/connect/lib/patch.js:59:22)
    at SendStream.type (/Users/ryan/dev/node/nodecellar/node_modules/express/node_modules/send/lib/send.js:456:7)
    at SendStream.send (/Users/ryan/dev/node/nodecellar/node_modules/express/node_modules/send/lib/send.js:348:8)
    at /Users/ryan/dev/node/nodecellar/node_modules/express/node_modules/send/lib/send.js:323:10
    at Object.oncomplete (fs.js:93:15)
    at process._makeCallback (node.js:299:20)

any thoughts?

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.