First, let's go ahead and set up our project by creating our package.json file in a folder of our choosing. We can start with the following basic package.json file:
{ "version" : "0.0.1", "name" : "microserver", "type" : "module"}
This should be fairly straightforward now. The main thing is that the type is set to module so we can utilize modules inside of Node.js. Next, let's go ahead and add the Remarkable dependency by running npm install remarkable inside the folder in which we put our package.json file. With that, we should now have remarkable listed as a dependency in our package.json file. Next, let's go ahead and get our server set up. To do so, create a main.js file and do the following:
- Import the http2 ...