From 4ea8643e02dbab72108dcbc97424bd43936d0cea Mon Sep 17 00:00:00 2001 From: Artemakis Date: Wed, 19 May 2021 23:40:34 +0300 Subject: [PATCH 1/2] added README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..bc017b5 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +## Setup Guide for Server + +1. Install docker following the instructions at https://gist.github.com/din0s/2660fdf6cf2307737210b62770780157 +2. Clone repository +3. Open a terminal and a file exlorer in \GradeServer +4. At terminal input **cp .env.defaults .env** +5. In .env file change *mongoHost=ip:port* to *mongoHost=0.0.0.0:27017* +6. At terminal input (docker must be running): +>* npm install +>* docker-compose up -d mongodb +>* npm start \ No newline at end of file From 8f5d2eaee74fd4b5e7d906f8b977895dd3dcbe47 Mon Sep 17 00:00:00 2001 From: Artemake Date: Fri, 21 May 2021 17:26:29 +0300 Subject: [PATCH 2/2] setup updated --- README.md | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index bc017b5..8e9f773 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,16 @@ -## Setup Guide for Server - -1. Install docker following the instructions at https://gist.github.com/din0s/2660fdf6cf2307737210b62770780157 -2. Clone repository -3. Open a terminal and a file exlorer in \GradeServer -4. At terminal input **cp .env.defaults .env** -5. In .env file change *mongoHost=ip:port* to *mongoHost=0.0.0.0:27017* -6. At terminal input (docker must be running): ->* npm install ->* docker-compose up -d mongodb +## Setup Guide for Server + +1. Install docker following the instructions at https://gist.github.com/din0s/2660fdf6cf2307737210b62770780157 +2. Install NodeJS +>* If you run on Linux follow the instructions at the link: +>>>https://www.geeksforgeeks.org/installation-of-node-js-on-linux/ +>* If you run on Windows follow the instructions at the link: +>>>https://phoenixnap.com/kb/install-node-js-npm-on-windows +2. Clone repository +3. Open a terminal and a file exlorer in \GradeServer +4. At terminal input **cp .env.defaults .env** +5. In .env file change *mongoHost=ip:port* to *mongoHost=0.0.0.0:27017* +6. At terminal input (docker must be running): +>* npm install +>* docker-compose up -d mongodb >* npm start \ No newline at end of file