This repository hosts the web page sources for www.netztest.at
For building the website, the following tools are needed
- NodeJS
- NPM
- Git
-
Build
npm install node build netztest
It is possible to live-rebuild changed sources by running
node build netztest watch
-
Deploy
Use the
build
-directory as the root directory for your webserver, e.g. in conjunction with thehttp-server
node module (npm install http-server -g
)http-server build -p 8081
Now, the website is ready to use: http://localhost:8081/en
For routing, the
.html
file extension is omitted. This can be done e.g. using a.htaccess
file with the following content in thebuild
folder.Options +Includes AddHandler server-parsed .html RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) $1.html [L]
- RTR-Netztest on the web