diff --git a/.gitignore b/.gitignore index b459a7d..d4b8348 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ +.idea +node_modules temp/ experiments/ + diff --git a/README.md b/README.md index 3ea8fad..a10773d 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,8 @@ threejs-cookbook ================ Examples for the Three.js Cookbook book I'm writing for Packt + +### Local Webserver (NodeJS) +If you have installed NodeJS you can start a local web server by opening a command prompt and enter `npm start`. This will +install webserver in the local project directory and running it on port **0.0.0.0:8081**. + diff --git a/package.json b/package.json new file mode 100644 index 0000000..d5abc8f --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "threejs-cookbook", + "version": "1.0.0", + "private": true, + "description": "Examples for the Three.js Cookbook book published by packt http://www.smartjava.org", + "main": "", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "prestart": "npm install --production", + "start": "http-server ./" + }, + "repository": { + "type": "git", + "url": "https://github.com/josdirksen/threejs-cookbook" + }, + "author": "Jos Dirksen", + "license": "", + "bugs": { + "url": "https://github.com/josdirksen/threejs-cookbook/issues" + }, + "homepage": "https://github.com/josdirksen/threejs-cookbook", + "dependencies": { + "http-server": "^0.8.0" + } +}