From 6d66e19dc5865b0952c975d27401ea68a9199601 Mon Sep 17 00:00:00 2001 From: Liam Hogan Date: Fri, 12 Oct 2018 15:30:34 -0400 Subject: [PATCH 1/3] Added installation instructions for macOS. Pulled some of the formatting from Anarcroth's Linux instructions. --- README.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/README.md b/README.md index 5834d64..06622b2 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,67 @@ cd Much-Assembly-Required\target java -jar server-1.4a.jar ``` +## macOS (tested on Sierra 10.12.6) + +###Installation + +1. Install [Maven3](https://maven.apache.org/) + -Add Maven bin to your path + ```bash + export PATH=/path/to/maven/bin.:$PATH + ``` +2. Install [MongoDB](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/?_ga=2.201359831.774868398.1539369140-197602459.1539369140). + -Via Brew: + ```bash + #Update brew + brew update + + #Install mongodb + brew install mongodb + + #Install latest development release + brew install mongodb --devel + ``` + -Via .tar.gz + ```bash + #Extract files: + tar -zxvf mongodb-osx-ssl-x86_64-4.0.3.tgz + + #Ensure binaries are in your path + export PATH=/bin:$PATH + ``` +If you do not wish to use the default data directory (/data/db), follow the steps for running MongoDB in the install doc. + +### Deploying Server + +1. Begin MongoDB service + ```bash + #If brew: + #Launch on login + brew services start mongodb + #Or, if you don't want/need a background service you can just run: + mongod --config /usr/local/etc/mongod.conf + + #If binary: + mongod + #Optional, set data directory path: + mongod --dbpath + ``` + +2. Deploy server: + ```bash + # Obtain source files + git clone https://github.com/simon987/Much-Assembly-Required.git + + # Build + cd Much-Assembly-Required + mvn package + + # Run + cd target + java -jar server-1.4a.jar + ``` + ## Docker ### Requirements From 268acda773b9b0de5b48d1297b1e223d60ae1fa3 Mon Sep 17 00:00:00 2001 From: Liam Hogan Date: Fri, 12 Oct 2018 15:35:30 -0400 Subject: [PATCH 2/3] Minor formatting fix. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 06622b2..58d33c3 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ java -jar server-1.4a.jar ## macOS (tested on Sierra 10.12.6) -###Installation +### Installation 1. Install [Maven3](https://maven.apache.org/) -Add Maven bin to your path From d860591cc8e54ed6a52e17f8f5c2ec6212d6ae6c Mon Sep 17 00:00:00 2001 From: Liam Hogan Date: Fri, 12 Oct 2018 17:45:38 -0400 Subject: [PATCH 3/3] Minor formatting fixes following simon987's suggestion. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 58d33c3..78e3e44 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ java -jar server-1.4a.jar ## macOS (tested on Sierra 10.12.6) -### Installation +**Installation** 1. Install [Maven3](https://maven.apache.org/) -Add Maven bin to your path @@ -105,7 +105,7 @@ java -jar server-1.4a.jar ``` If you do not wish to use the default data directory (/data/db), follow the steps for running MongoDB in the install doc. -### Deploying Server +**Deploying Server** 1. Begin MongoDB service ```bash