Closed unprofessional closed 6 years ago
I didn't like having to mutate a const
(for the encryption config stuff), so I implemented a spread-operator refactor instead (which could come in handy as ES6 becomes more prevalent).
I think this is good for another pass.
What's this PR do?
NODE_ENV=test
because I didn't feel comfortable running tests on the "production" databaseRelated JIRA tickets:
How should this be manually tested?
create production database
run the app and POST to
/users
to createcreate a test database
run
yarn test
test the Dockerfile via:
docker build -t test-api-boilerplate .
to builddocker run --rm -e JWT_SECRET="safsdfds" -e SUBSCRIPTION_SERVICE_URL="http://localhost:4040" -e KAFKA_SERVER_HOST=localhost test-api-boilerplate
to run.Any background context you want to provide?
Screenshots (if appropriate):