aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjw2552018-04-23 16:14:13 +0100
committerjw2552018-04-23 16:14:13 +0100
commitae5e15d01b3e79976e952e6039428005f0405ccb (patch)
tree61543580b438f6f5b78a13cf55f8e8bb8d02ef6b
parentMerge branch 'trh/gets' of https://gitlab.cs.st-andrews.ac.uk/cs3099group-be-... (diff)
downloadmedicine-ae5e15d01b3e79976e952e6039428005f0405ccb.tar.gz
medicine-ae5e15d01b3e79976e952e6039428005f0405ccb.zip

changed scripts and readme

-rw-r--r--.gitignore3
-rw-r--r--README.md3
-rw-r--r--dump.rdbbin0 -> 92 bytes
-rwxr-xr-xgetmeall.sh1
-rw-r--r--package.json2
-rwxr-xr-xrunmeredis.sh3
6 files changed, 10 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index d67b619..3a2f358 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,4 +29,7 @@ docs/
# project files
files/*
+# redis folder
+redis*
+
report/deliverable-3/main.synctex.gz
diff --git a/README.md b/README.md
index 6660a1e..6fa092d 100644
--- a/README.md
+++ b/README.md
@@ -5,9 +5,10 @@
$ ./getmeall.sh
$ yarn
-## Instructions to run postgres:
+## Instructions to run postgres & cacheing:
$ ./runmepostgres.sh
+$ ./runmeredis.sh
## Instructions to run server:
diff --git a/dump.rdb b/dump.rdb
new file mode 100644
index 0000000..4439e12
--- /dev/null
+++ b/dump.rdb
Binary files differ
diff --git a/getmeall.sh b/getmeall.sh
index 9d3a6d1..a730588 100755
--- a/getmeall.sh
+++ b/getmeall.sh
@@ -5,5 +5,6 @@ npm i -g yarn
yarn
./getmepostgres.sh
./getmecziconversion.sh
+./getmeredis.sh
echo "COMPLETE! Ready to use.";
diff --git a/package.json b/package.json
index 5cf3f12..6475d72 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"main": "index.ts",
"license": "UNLICENSED",
"scripts": {
- "_test": "PORT=4321 NODE_ENV='test' mocha --reporter spec -r ts-node/register",
+ "_test": "PORT=4321 mocha --reporter spec -r ts-node/register",
"test": "yarn _test './test/**/*.test.ts'",
"test:routes": "yarn _test './test/**/*.routes.test.ts'",
"test:unit": "yarn _test './test/**/*.unit.test.ts'",
diff --git a/runmeredis.sh b/runmeredis.sh
new file mode 100755
index 0000000..5d3915a
--- /dev/null
+++ b/runmeredis.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+./redis-stable/src/redis-server redis-stable/redis.conf &