fendersperth / fendersbot

A group project for learning and teaching via a real code base
9 stars 3 forks source link

Database #15

Open kevincharm opened 8 years ago

kevincharm commented 8 years ago

We'll need to decide on which DB we want to use before we get into more complex features like #1, #3. I've been working with MongoDB for the past year but I would love to check out RethinkDB. Any other DBs people keen to work with?

luke-john commented 8 years ago

I'm a huge fan of rethinkdb. However having a database dependency decreases the accessibility of a project fairly significantly.

If we did use one, I'd recommend something like nedb for local development.

It's API is a subset of MongoDB's so we could toggle based on environment.

if (process.env.MONGOURL) {
 // use mongo
} else {
  // use nedb
}
kevincharm commented 8 years ago

Great idea. Maybe we can just use nedb to simplify the project?

karlbright commented 8 years ago

So the bot is now up and running via Heroku(sleepless) and is using redis store for the botkit storage. I'm not sure we want to use redis for our persistent storage, but i'm placing this here for documentation purposes :ok_hand: