From 5e0d0da8f2a7319e21ab15e7e45c398a196d66f4 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Tue, 16 Jun 2015 10:48:38 +0200 Subject: [PATCH] #102 - Add instruction to create mongodb data directory. Running mongodb fails if the --dbpath directory does not yet exist. This change instructs the user to create the directory first. --- rest/starbucks/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/starbucks/README.md b/rest/starbucks/README.md index e1a601d8..8cbc8d24 100644 --- a/rest/starbucks/README.md +++ b/rest/starbucks/README.md @@ -4,7 +4,7 @@ This sample app exposes 10843 Starbucks coffee shops via a RESTful API that allo ## Quickstart -1. Install MongoDB (http://www.mongodb.org/downloads, unzip, run `bin/mongod --dbpath=data`) +1. Install MongoDB (http://www.mongodb.org/downloads, unzip, run `mkdir data`, run `bin/mongod --dbpath=data`) 2. Build and run the app (`mvn spring-boot:run`) 3. Access the root resource (`curl http://localhost:8080`) and traverse hyperlinks. 4. Or access the location search directly (e.g. `http://localhost:8080/stores/search/findByAddressLocationNear?location=40.740337,-73.995146&distance=0.5miles`)