Bratanov / community-driven-radio

A radio station driven by the community
10 stars 1 forks source link

Feature / Setup database #11

Open IvayloAtanasov opened 8 years ago

IvayloAtanasov commented 8 years ago

A database should be setup to unable us tracking things. At first we can use it to store comments made, songs played and the song queue. This will allow us to have some downtime without completely trashing all current data. Some sub tasks here:

  1. What to use: relational or non-relational
  2. Where to host it: on the current server or using 3rd party service like parse/mlab?
  3. Design tables/collections and what to keep in them
  4. Setup driver + models
Bratanov commented 8 years ago

Sounds good, Im thinking maybe we could have repository modules that implement methods for one specific data provider, so we can later experiment on a different database type with a new repo and switch them out? You can try out and show me if you have something, working or not. :)

Bratanov commented 7 years ago

Also note: We need a configuration file (for the DB) that can also include the youtube api key. Two birds with one stone. Boo-yah!

edit: .env was implemented for #37