Install dependencies:
$ npm run install-deps
Run server:
$ npm start
Go to http://localhost:1234 to see the project in the browser.
Run API:
$ npm run start-server
Go to http://localhost:3000 to see the API in the browser.
In the tsconfig.json
file following option was defined:
{
"compilerOptions": {
// ...
"moduleResolution": "NodeNext"
},
}
More details about module resolution here.
Note that tsconfig.json
file is not included in this repository because I use a global file for all this mini-projects created for this course.