Installation - CMPUT301F16T18/Unter GitHub Wiki

Prerequisites

  • Android Studio:
    • Version: 2.1.3
  • ElasticSearch:
    • Mapping is required before running this application
curl -XPUT http://cmput301.softwareprocess.es:8080/unter/_mapping/request -d '
{
    "request" : {
        "properties" : {
            "route" : {
                "type" : "nested",
                "properties": {
                	"origin": {"type": "geo_point"},
                	"destination": {"type": "geo_point"}
                }
            },
            "isCompleted": {
                "type": "boolean"
            },
            "riderUserName": {
                "type": "string",
                "index": "not_analyzed"
            },
            "driverUserName": {
                "type": "string",
                "index": "not_analyzed"
            },
            "requestDescription": {
                "type": "string"
            }
        }
    }
}'

curl -XPUT http://cmput301.softwareprocess.es:8080/unter/_mapping/user -d '
{
      "user": {
          "properties": {
              "emailAddress": {
                  "type": "string",
                  "index": "not_analyzed"
              },
              "userName": {
                  "type": "string",
                  "index": "not_analyzed"
              },
              "mobileNumber": {
                  "type": "string"
            }
        }
    }
}'