- Add the REST Client VSCode extension to your VSCode.
- Issue an
Open user settings (JSON)VSCode command, useCTRL+SHIFT+Pand search for the command. - Add the following line to the top level of the
settings.json:"rest-client.previewOption": "exchange" - With this setting you will see both the request and the response in the REST Client.
- Issue an
npm installcommand.
- Issue an
npm run devcommand. - Initiate a
GET http://localhost:4400/api/hello(e.g. with the REST Client from therequests.http) file.
- Issue an
npm test -- app.test.tscommand. - This run the tests from the
app.test.tsfile to check the test framework is set up properly.
- Start a development server in watch mode:
npm run dev. - Run all tests:
npm test. - Run a specific test file
npm test -- <file name>. - Create a production build (TS -> JS):
npm run build. - Start the production build:
npm start.
Check the tasks.md for the details.