GrLdev / Rate-My-Student-Home

A website designed to allow students rate their student homes in Cardiff.
3 stars 0 forks source link

Migrate to a hosted database #63

Open tobynott80 opened 1 year ago

tobynott80 commented 1 year ago

To ensure persistence, scalability and backups, we should research into free tiers of database hosting.

These should have SQLite or similar dialect options, to ensure interoperability between the current development database and for cognisance between the developer team.

tobynott80 commented 1 year ago

Free Hosting Options:

PlanetScale

Azure Free DB Tier

Cardiff Uni Services

CleverCloud

MongoDB

IBM Db2

tobynott80 commented 1 year ago

https://gist.github.com/bmaupin/0ce79806467804fdbbf8761970511b8c

tobynott80 commented 1 year ago

In the migration to production we will need some kind of profile to switch between a local development db and a live production db. gonna look into this

tobynott80 commented 1 year ago

Decided on planet-scale for now given cost and scalability

tobynott80 commented 1 year ago

Going to need to add a dev/prod profile switch https://flask.palletsprojects.com/en/2.0.x/config/#development-production