Starter: Node.js, Webpack, TypeScript, Express & MongoDB dotenv Create a .env file in the root directory of your project. Add environment-specific variables on new lines in the form of NAME=VALUE. For example: PORT= MONGODB_ATLAS_URI=