Postgres, Api Running

Today I'll set up the Postgres initialization.

For each app I need to:

  • create a new database
  • create a new user that will own the database
  • get the credentials, build a connection string
  • pass that into the config

Done.

I need to refactor AGAIN to accomodate for both local and prod setups.

It's so difficult to untangle all of this, as some configuration is shared, and some prod specific, and I hadn't written the code to accomodate that fully when I started. The verbosity of go doesn't help.

Took me a LONG, but I'm finally done.

Fixed one more configuration issue, ran it again, and it works! The api is live! So excited.

The only things left infrastructure wise are:

  • Automating DNS
  • Automating SSL

Very excited to finish.