From 41cbc840766022d602e63b417964b6a58354b8ae Mon Sep 17 00:00:00 2001 From: Thomas Wade Date: Tue, 16 Oct 2018 13:46:51 +1030 Subject: [PATCH] Initialise Node --- README.md | 9 +++++++++ package-lock.json | 5 +++++ package.json | 18 ++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/README.md b/README.md index 34a9164..d05d943 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ # 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` diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..15455cc --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "webdev-assignment-2", + "version": "0.1.0", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..8f8b55a --- /dev/null +++ b/package.json @@ -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" +}