JavaScript Configuration Management

Medium
1
41.7% Acceptance

In this lab, your task is to create a JavaScript configuration management system using Node.js. You will create an 'index.js' file exporting a 'config' object with configurations such as 'host' and 'port'. In the process, you will also create a 'config.json' file with the same configuration and use the fs.promises API to read and log its contents in the console. This lab will help you understand the concepts of ES modules, configuration management, and working with the fs.promises API.