Category: Node.js

  • How to use dotenv and Express.js with ES6 modules

    (Optional) Initialize git version control Initialize a new project and answer all questions Install dotenv and express In package.json insert “type” : “module” to allow the import of modules like this Create a file .env and insert Create a file server.js and insert Insert in a terminal