Prerequisits
node.js installednpm installed
Create a webserver
This webserver can dispatch a hand full of images , text, javascript and css
Create a file "server.js" and paste following code
This will create the webserver
Create a file to dispatch
Open a terminal in the projectroot and create a file "index.html" with following contentStart the webserver
Open a terminal in the projectroot and type:$ node server.js
Now you can surf http://localhost:1337/index.html and you should see "Testing"
Thats it
Keine Kommentare:
Kommentar veröffentlichen