{"id":15946645,"url":"https://github.com/kanghyojun/affogato","last_synced_at":"2025-04-03T22:40:25.427Z","repository":{"id":7794638,"uuid":"9164794","full_name":"kanghyojun/Affogato","owner":"kanghyojun","description":"Mintpresso scala API Pack","archived":false,"fork":false,"pushed_at":"2013-06-25T04:41:51.000Z","size":605,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T10:29:59.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanghyojun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-02T07:30:15.000Z","updated_at":"2013-12-27T06:25:56.000Z","dependencies_parsed_at":"2022-09-15T12:12:21.339Z","dependency_job_id":null,"html_url":"https://github.com/kanghyojun/Affogato","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanghyojun%2FAffogato","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanghyojun%2FAffogato/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanghyojun%2FAffogato/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanghyojun%2FAffogato/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanghyojun","download_url":"https://codeload.github.com/kanghyojun/Affogato/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092373,"owners_count":20882217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T09:22:44.455Z","updated_at":"2025-04-03T22:40:25.406Z","avatar_url":"https://github.com/kanghyojun.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Affogato\n## MINTPRESSO API for Scala\nIt supports basic graph manipulation and data querying for MINTPRESSO Data Cloud.\n\n## Getting Started\nAdd this repository as a project dependency to your sbt project.\n```scala\nimport sbt._\n\nobject MyBuild extends Build {\n  lazy val root = Project( ... ) dependsOn (\n    RootProject(uri(\"git://github.com/admire93/Affogato.git\"))\n    // can use local repo uri(\"file:////Users/eces/affogato\")\n  )\n}\n```\n\nNow you can use **Affogato** by adding it to Project dependencies.\n```scala\n\"com.mintpresso\" %% \"mintpresso\" % \"0.1.9\"\n```\n\n### Play Framework 2\nIf you're using Play Framework 2, edit `project/Build.scala`.\n```scala\n  val appDependencies = Seq(\n    // Add your project dependencies here\n    \"com.mintpresso\" %% \"mintpresso\" % \"0.1.9\"\n  )\n\n\n  val main = play.Project(appName, appVersion, appDependencies).settings(\n    // Add your own project settings here      \n  ).dependsOn(\n    RootProject(uri(\"git://github.com/admire93/affogato.git\"))\n  )\n```\n\nWe can export your API key to `conf/application.conf`. This configuration makes you feel happy when you deploy on several servers or use multiple keys.\n```\n# one key and id pair\nmintpresso.api=YOUR_API_KEY_HERE\nmintpresso.id=1\n\n# many pairs\nmintpresso {\n  internal {\n    api=API_KEY_FOR_SECURED_OPERATION\n    id=1000\n  }\n  external {\n    api=API_KEY_FOR_READONLY\n    id=1000\n  }\n}\n```\n\n\nInitialze affogato variable in any `Controller` or `Model` code.\n```scala\nval mintpresso: Affogato = Affogato( \n  Play.configuration.getString(\"mintpresso.api\").getOrElse(\"\"),\n  Play.configuration.getLong(\"mintpresso.id\").getOrElse(0L)\n)\n/*\n  It works but not DRY.\n  val mintpresso: Affogato = Affogato( \"YOUR_API_KEY_HERE\", 0 )\n*/\n```\nCreating wrapper class like `AffogatoController` is somehow useful.\n\n## Advanced Use\nClone this repository first.\n```bash\n$ git clone https://github.com/admire93/Affogato.git affogato\n\n```\n\nYou can edit `affogato.conf` for your environment before `sbt public-local`.\n```bash\n$ cd src/main/resources/affogato.conf\n$ cat affogato.conf\n\nmintpresso.protocol=http\nmintpresso.host=\"api.mintpresso.com\"\nmintpresso.port=80\nmintpresso.version=v1\n```\n\nBuild and publish to an local repository(~/.ivy2).\n```bash\n$ cd affogato\n$ sbt publish-local\n```\nGenerated documentation will be placed in `target/scala-2.10/api`. Type`open target/scala-2.10/api/index.html` to see.\n\n### Using in console\nStart console in working directory.\n```bash\n~/affogato$ sbt console\n...\nscala\u003e \n```\n\nImport a package of Affogato and put your API KEY. See your settings first at **[Panel](http://mintpresso.com/login) \u003e Overview \u003e API Setting**. \n```scala\nscala\u003e import com.mintpresso._\nimport com.mintpresso._\n\nscala\u003e val mintpresso: Affogato = Affogato(\"YOUR_API_KEY_HERE\", 1)\nmintpresso: com.mintpresso.Affogato = Affogato(YOUR_API_KEY_HERE, 1)\n\nscala\u003e mintpresso.get(1)\nres0: Option[com.mintpresso.Point] = Some(Point(...))\n```\nNow you can play with MINTPRESSO.\n\n### Using in project\nAnd then, add a custom resolver to your sbt project.\n```scala\nresolvers += \"Local Repository\" at \"file://\"+Path.userHome.absolutePath+\"/.ivy2/local\"\n```\n\nAlso on sbt `Project` dependencies.\n```scala\n\"com.mintpresso\" %% \"mintpresso\" % \"0.1-SNAPSHOT\"\n```\n\n## Examples\nSee [Affogato Scala Doc](http://docs.mintpresso.com/affogato).\n\n## Contributors\n@admire93 @eces\n\n## Further Information\nYou can visit [MINTPRESSO 민트프레소](http://mintpresso.com) official website or go to read more [Examples, User guide \u0026 API documentation](http://docs.mintpresso.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanghyojun%2Faffogato","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanghyojun%2Faffogato","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanghyojun%2Faffogato/lists"}