From 865fc7897ebc1655baba77029f1d214200ffbae5 Mon Sep 17 00:00:00 2001 From: Florens Douwes Date: Mon, 6 Apr 2020 18:46:42 +0200 Subject: [PATCH] add readme and fix package.json requirement and script --- README.md | 15 +++++++++++++++ backend/package.json | 3 ++- frontend/package.json | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9dc3052 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +CENTVRION +========= + +## Introduction +The projects consists of two projects, a frontend written in React, and a backend written in javascript. Both communicate with a websocket. + +## Setup +Download centurion.m4a and place it in frontend/public/centurion.m4a + +Start the backend with `npm run app` and the frontend with `npm run start`. + + + + + diff --git a/backend/package.json b/backend/package.json index 6e4cc44..11de22f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -4,7 +4,8 @@ "description": "", "main": "./src/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "app": "node src/index.js" }, "author": "", "license": "ISC", diff --git a/frontend/package.json b/frontend/package.json index f0eda4e..7c84d05 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -15,7 +15,7 @@ "node-sass": "^4.13.1", "react": "^16.12.0", "react-dom": "^16.12.0", - "react-scripts": "3.3.1", + "react-scripts": "^3.4.0", "react-transition-group": "^4.3.0", "socket.io-client": "^2.3.0", "sscaffold-css": "^0.1.0",