craigmulligan / nawr

Serverless SQL databases on demand
9 stars 0 forks source link

Local dev workflow #6

Closed craigmulligan closed 4 years ago

craigmulligan commented 4 years ago

Right now, we create a db when you first run nawr init and set up the environment variables. This is nice because it mirrors prod and preview environments but it does cost money. It maybe worth having and option to spin up a local db and the create a implementation of a pg/mysql client that replicates the rds http data api.

craigmulligan commented 4 years ago

Thinking the best is just to add an sqlite option in the engine mode. And then for local dev you can use nawr init --engine sqlite.

craigmulligan commented 4 years ago

Actually https://github.com/koxudaxi/local-data-api looks like it could solve the problem nicely.