Setup Wizard Middleware
Instead of crashing if .env
is not ready, show a setup wizard.
Usage
Start by remixing this project, and edit env.json
according to your needs.
How to use it on an existing project
-
Add
setup-wizard
to package.json -
Create
env.json
to list your required environment variables -
Add this code to your
server.js
, before any other route:app.use(require('setup-wizard'));