Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
The start server task is a shell task, should run in the background and the command it executes is http-server, which is the NPM module of the same name. The presentation property is set to silent, which means that when the server starts, it doesn't pop up the terminal in Visual Studio Code. When we use background tasks, we need to define a problemMatcher that tells the debug process if the task has executed successfully or if there was any issue. This can get rather complex and you need to parse the output on the Console with Regular Expressions. In this case, we keep it very open and allow anything reported on the output Console to be a success (RegEx ".").
If you want to see this in action, you can fork the simple to-do demo and run it locally. Make sure to have http-server installed via NPM.
Related posts
- Need help setting up a remote depository using GitHub and VCS
- What is the simplest way to run an index.html file inside a server.js file using node.js
- Looking to host React Static Application on AWS S3 question on dependencies
- Opened my angular project after a week to find it like that? (All the stuff i built doesn't appear anymore). Any Idea why ? (Note: in the extensions the "Angular Language Service" seems to have had an update). Opening from Chrome shows the html but not the rest of the code.
- When they run the http-server command in the codespace, is it an alias in the .bashrc file that executes something along the lines of 'sudo systemctl start apache2' after they configured the apache2 server? Or is there a much simpler aproach that I didn't take into consideration?