ColinOrr-Asidua / chitter

Chitter allows developers to share useful information quickly and informally using a social, micro-blogging approach.
0 stars 1 forks source link

Mongoose #10

Open ColinOrr-Asidua opened 10 years ago

ColinOrr-Asidua commented 10 years ago

Currently the application accesses the database using MongoJS, the code can be found here: https://github.com/ColinOrr-Asidua/chitter/blob/master/db.js.

We'd like to give it a real schema, instead of just slinging JavaScript into the database. Mongoose looks like a fairly popular library to achieve this.

martinmicunda commented 10 years ago

I have dropped AppFog and data should be save in local mongoDB (u just need to run mongo db nothing else is required, db and collection will be created automatically).. The config details come from development.json and probably in the future this file won't be in the repo so everybody can config db connection as they wish e.g. (local, MongoLob, AppFog etc.)