node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป


Setup Wizard Middleware

Instead of crashing if .env is not ready, show a setup wizard.


Start by remixing this project, and edit env.json according to your needs.

How to use it on an existing project

  1. Add setup-wizard to package.json

  2. Create env.json to list your required environment variables

  3. Add this code to your server.js, before any other route: