What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-28 20:55:32
npm node env
$ npm install dotenv //-------------------- on file .env //-------------------- DB_HOST=localhost DB_USER=root DB_PASS=s1mpl3 DB_NAME=banco_de_dados DB_PORT=3306 //-------------------- import the config from .env file //-------------------- require... Add solution -
Shell/Bash 2022-01-22 04:45:27
how to use dotenv in javascript
$ npm install dotenv //-------------------- on file .env //-------------------- DB_HOST=localhost DB_USER=root DB_PASS=s1mpl3 DB_NAME=banco_de_dados DB_PORT=3306 //-------------------- import the config from .env file //-------------------- require... Add solution -
SQL 2021-10-17 09:31:06
Failed to connect to localhost:1433 - self signed certificate
const config = { port: parseInt(process.env.DB_PORT, 10), server: process.env.DB_HOST, user: process.env.DB_USER, password: process.env.DB_PASS, database: process.env.DB_Database, stream: false, options: { trustedConnection: true, en... Add solution -
Other 2021-09-09 11:07:02
Error: Cannot find module 'dotenv'
$ npm install dotenv //-------------------- on file .env //-------------------- DB_HOST=localhost DB_USER=root DB_PASS=s1mpl3 DB_NAME=banco_de_dados DB_PORT=3306 //-------------------- import the config from .env file //-------------------- require... Add solution
Best helpers
Ranking is empty