Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help with .env #1

Open
GusMorning opened this issue Mar 4, 2022 · 1 comment
Open

Need help with .env #1

GusMorning opened this issue Mar 4, 2022 · 1 comment

Comments

@GusMorning
Copy link

GusMorning commented Mar 4, 2022

Hi!

I see your proyect (That is awesome) because i was searching to learn how to do a bot for WhatsApp. If you can help me, I have some question:
~ What's need to be in the .env file?. And that's all, thanks for the time ;)

@RoiKlevansky
Copy link
Owner

Hello there,
If you're looking for info on the .env file, you may want to open 'src/config/config.ts'.
There you can find the config scheme that is loaded from the .env file.

const envVarsSchema = Joi.object()
.keys({
NODE_ENV: Joi.string().valid('production', 'development', 'test').required(),
DB_PORT: Joi.number().default(5432),
DB_HOST: Joi.string().default('localhost'),
DB_USER: Joi.string().default('postgres'),
DB_PASSWORD: Joi.string().default('postgres'),
DB_NAME: Joi.string().default('postgres'),
CHROME_PATH: Joi.string(),
PERSONAL_NAME: Joi.string()
})
.unknown();

Hopes this helps you and good luck on your mission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants