This is a skeleton app for people who want to use TypeScript.
- Install NodeJS. This will automatically also install
npm
. - Open a terminal window (command prompt, git bash, powershell)
- Check if NodeJS is installed by typing
node --version
into the terminal. It should print a line with something likev22.11.0
. - Check if NPM is installed by typing
npm --version
into the terminal. It should print a line with something like10.9.0
.
If you dislike NodeJS and NPM piling up heaps of folders on your computer, use Docker!
- Install Docker Desktop.
- Open a terminal window.
- Clone this repository.
- Move to this folder inside the terminal.
- Run
docker run -it --rm -v .:/app -w /app node:lts bash
. - You will now get a bash terminal from which you can execute commands.
- From the bash terminal you can execute
node --version
andnpm --version
. - All commands executed in this environment will have an inpact on your project.
- From the bash terminal you can execute
- Once finished, you can type
exit
.
- Clone or download this repository to your computer
- Open a terminal or docker container in the project directory.
- Install the dependencies by running
npm install
. - Compile the project by running
npm run build
. If you want to run the build script everytime you make changes automatically, you can usenpm run watch
. - Run the application. You cannot just open the
index.html
file (see the following section).
Applications built with es6 (and higher) modules must be run on a webserver. On Visual Studio Code, Five Server is recommended.
An example index.html
is provided. You cannot load the index.html from your filesystem. It will not work!
- To use the provided
.editorconfig
file, install the EditorConfig plugin. - To use the provided
eslint.config.mjs
file, install the ESLint plugin.