Initialise Node

This commit is contained in:
Thomas Wade 2018-10-16 13:46:51 +10:30
parent 4f0ce43149
commit 41cbc84076
No known key found for this signature in database
GPG Key ID: 9E41F0F2D7A350E4
3 changed files with 32 additions and 0 deletions

View File

@ -1,2 +1,11 @@
# WebDev-Assignment-2 # WebDev-Assignment-2
### Install
_**Note:** You need to have node js installed, just use the latest 'Current' version found [here](https://nodejs.org/en/)_
- _Install node js if you haven’t already per above note_
- Download and extract the provided web_dev zip to a suitable location.
- Navigate using command line into the extracted directory e.g. `cd webdev-assignment-2`
- Install dependencies via: `npm install`. This only needs to be done the first time the folder is initialized
- Start the server / Serve the html with: `npm start`

5
package-lock.json generated Normal file
View File

@ -0,0 +1,5 @@
{
"name": "webdev-assignment-2",
"version": "0.1.0",
"lockfileVersion": 1
}

18
package.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "webdev-assignment-2",
"version": "0.1.0",
"description": "My submission for the second WebDev (COMP2772) assignment.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "ws"
},
"author": "Thomas Wade",
"devDependencies": {},
"dependencies": {},
"main": "server.js",
"repository": {
"type": "git",
"url": "https://tem.party:3000/tom/WebDev-Assignment-2.git"
},
"license": "MIT"
}