Skip to content

Commit

Permalink
Completed placeholder sections
Browse files Browse the repository at this point in the history
  • Loading branch information
rladines committed Jan 18, 2016
1 parent f4cb612 commit af3089b
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions docs/Installation and Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,24 @@ Instructions for building the release packages can be found below:

### Installation
#### Service Layer
##### Installation and Setup
* TODO: Add steps to deploy WAR file

##### Database Configuration (MongoDB)
* TODO: add steps to import sample data into Mongo DB
* The OpenGrid Service Layer template implementation utilizes a MongoDB instance to store and retrieve test datasets. Two sample datasets are made available by the service: tweets and weather. Assuming that a MongoDB instance is already installed, import the test data by running the mongoimport utility for each json file similar to below:

```
mongoimport --host <mongodb hostname> --port <port #> --username <userid> --password <password> --collection <target collection name> --db <dbname> --file <file location>
```

The json files to import can be found in ./opengridservice/src/test/data folder under the opengrid-svc-template project. Use the first part of the the json file name as the target collection name.

For example to import the opengrid_users collection, you can run the following:
```
mongoimport --host <mongodb hostname> --port <port #> --username <userid> --password <password> --collection opengrid_users --db <dbname> --file ./test/data/opengrid_users.json
```

By default, an admin user is created with user id 'admin' and password 'admin123'.

##### Installation and Setup
* Follow the steps described in the Service Layer Build Procedures above making sure that the application.properties file is updated with the appropriate MongoDB connection string. A war file is generated after the build process which can be deployed to an application server of your choice.

#### User Interface
* Update service URL to point to service URL configured above.
Expand Down

0 comments on commit af3089b

Please sign in to comment.