April 2020
Intermediate to advanced
292 pages
6h 50m
English
And we also have a change to our configuration to make. We need to pull in the Message Store, instantiate it, and pass it to the record-viewings application:
| 1: | // ... |
| - | const createPostgresClient = require('./postgres-client') |
| - | const createMessageStore = require('./message-store') |
| - | function createConfig ({ env }) { |
| 5: | const knexClient = createKnexClient({ |
| - | connectionString: env.databaseUrl |
| - | }) |
| - | const postgresClient = createPostgresClient({ |
| - | connectionString: env.messageStoreConnectionString |
| 10: | }) |
| - | const messageStore = createMessageStore({ db: postgresClient }) |
| - | |
| - | const homeApp = createHomeApp({ db: knexClient }) |
| - | const |
Read now
Unlock full access