Most importantly is the DB_TYPE which can either be postgres or cassandra.
I've chosen to use DB_IDENTIFIER for both the database for postgres and keyspace for Cassandra.
Based on feedback from @doudejans I've also added an ENVIRONMENT variable that defaults to development and can be set to production when running in production.
Resolves #4
Removes the config from the template module.
Introduces environment variables to alter runtime behaviour.
The env variables are defined and used as follows:
Most importantly is the
DB_TYPE
which can either bepostgres
orcassandra
.I've chosen to use
DB_IDENTIFIER
for both thedatabase
for postgres andkeyspace
for Cassandra.Based on feedback from @doudejans I've also added an
ENVIRONMENT
variable that defaults todevelopment
and can be set toproduction
when running in production.