Do

Dotenv-generator – a better way to setup .env files

Hacker News

Dotenv-generator – a better way to setup .env files

So after being a fan of Setup.exe-s since I installed my first program 20+ years ago I always hated how manual project setup (usually configuring the env variables) usually is. This package ought to help with that (at least with setting up .env files) by making it interactive. This usually isn't meant for people/projects who have gone through the setup manually multiple times and know what values they need to use, but instead it is meant for people configuring projects for the first time (think new employees being onboarded or a project like aws being configured after installation). The interactivity is not the only helpful feature, you can use comments in .env files to help the end user understand what values are expected as these comments will be displayed during the setup flow. If you do not provide a comment, a helpful description will be autogenerated using the default/example value. The easiest way to use this package is to run it (Duh). You can add a `configure` script to your package.json file that runs `dotenv-generator`. If you want users to execute this script let them know by asking them to perform this after installation `npm explore {name_of_the_package} -- npm run configure`. Ideally your project should use `dotenv-generator --postinstall` as a `postinstall` action. This means that after installation of your package, `dotenv-generator` will be run. This allows for a seamless setup of your project that will magically happen after installation. Since this is not an ideal world npm 6+ *doesn't play nice* with interactive `postinstall` hooks so I've added a check for that if you include the `--postinstall` flag it will check the npm version and for npm 6+ the script won't execute the interactive flow.It will instead print a message saying that the configuration could be done by executing `npm explore {name_of_the_package} -- npm run postinstall`. To view this output you must include `--foreground-scripts` as a flag for package installation ie. `npm i --foreground-scripts`. The project is fully open sourced here https://github.com/lnenad/dotenv-generator

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
76%76% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: user, new, activity · Missing: mac, agents, macos
72%72% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: open source, ide, io · Missing: https docs, excited, just released
41%41% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: users · Missing: plus, platform, intuitive
41%41% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: users, way · Missing: mobile apps, ios, personal
37%37% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Se
Setupgoon – Better setup.py by extorting information from files31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Setupgoon – Better setup.py by extorting information from files

Hacker News1
A
A better way to initialize hyperlinks56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A better way to initialize hyperlinks

Hacker News1
Lo
LovelyHeroku becomes way better57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

LovelyHeroku becomes way better

Hacker News1
ArtStack
ArtStack48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A better way to do commissions

Indie Hackerscommitment-side-project
Pulsar
Pulsar37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Better way!

Indie Hackerscommitment-full-time
My
My GPG setup for developing and more39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My GPG setup for developing and more

Hacker News2
NameWeave
NameWeave33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI name generator for better shortlists

Indie Hackerscommitment-side-project
Go
Golang] setup configuration easily from flags, env, files or default31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Golang] setup configuration easily from flags, env, files or default

Hacker News6
Densar BK
Densar BK37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rebuilds your Windows dev setup, not just the files

Indie Hackers1ai
A
A better way to consume MIT videos55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A better way to consume MIT videos

Hacker News1