envone-ui v0.1.1
EnvOne-UI
Dashboard to review your application's runtime environment variables.
Install
# with npm
npm install envone-ui
# or with Yarn
yarn add envone-ui
Usage
1. Custom usage
const app = express(); // create express server
const envOneUI = require('envone-ui'); // import envone-ui
// Configure envOneApi
app.use(envOneUI.configure({
include: ['SERVER_URL', 'DB_USERNAME', 'DB_PASSWORD'],
secrets: ['DB_PASSWORD'],
isAuthRequired: true,
}),
);
2. Use with EnvOne or Dotenv
Configure
EnvOne
properly with your Node.js application to load environment variables from.env.config
file, or configureDotenv
to loan environment variables from.env
.// Configure EnvOne const configuredEnv = require('envone').config(); // Or configure Dotenv const configuredEnv = require('dotenv').config();
Pass the configured output from
envone
ordotenv
as a parameter toEnvOne-UI
initialization method.const app = express(); // create express server const envOneUI = require('envone-ui'); // import envone-ui app.use(envOneUI(configuredEnv))
If you want to add custom configurations to
EnvOne-UI
, you can useconfigure
method,const app = express(); // create express serverenvone const envOneUI = require('envone-ui'); // import envone-ui // Configure envOneApi app.use(envOneUI.configure({ include: ['ENV'], secrets: ['DB_PASSWORD'], exclude: ['ANALYTICS_URL'], isAuthRequired: true, configOutput: configuredEnv }), );
Note: If you properly configured
.env.config
for secrets, you can avoidsecrets
configuration here. It fetches necessary configurations from theEnvOne
config output.
Example Projects
Configurations
Screenshots
Contributions
You can add any suggestions/feature requirements/bugs to the Github issues page : https://github.com/apisquare/envone-ui/issues
Add your fixes and development changes as pull requests to this repository.