{"id":22214020,"url":"https://github.com/xmlking/grails-batch-rest","last_synced_at":"2025-07-27T12:31:59.907Z","repository":{"id":18231526,"uuid":"21374793","full_name":"xmlking/grails-batch-rest","owner":"xmlking","description":"Grails Spring Batch, CORS, REST API, WebSockets, Spring Security Core/LDAP Demo","archived":false,"fork":false,"pushed_at":"2015-05-23T02:56:37.000Z","size":849,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T20:22:08.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmlking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-01T04:06:15.000Z","updated_at":"2019-12-16T12:52:42.000Z","dependencies_parsed_at":"2022-09-02T15:02:49.381Z","dependency_job_id":null,"html_url":"https://github.com/xmlking/grails-batch-rest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Fgrails-batch-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Fgrails-batch-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Fgrails-batch-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Fgrails-batch-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmlking","download_url":"https://codeload.github.com/xmlking/grails-batch-rest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227802821,"owners_count":17822113,"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-12-02T21:13:00.367Z","updated_at":"2024-12-02T21:13:01.109Z","avatar_url":"https://github.com/xmlking.png","language":"Groovy","readme":"## Spring Batch PoC\n\nGrails Spring Batch, CORS enabled REST API, Spring Security Core/LDAP Demo\n\n### Prerequisite \n```bash\n# GVM - Tool for managing Groovy related frameworks  \ncurl -s get.gvmtool.net | bash\n    \n# install Grails 2.5.x\ngvm install grails\n\n# install MongoDB\nbrew install mongodb\n```\n\n\n### Getting Started\n\n1. Install IDE\n\n    latest [GGTS](http://grails.org/products/ggts) or [IntelliJ](http://www.jetbrains.com/idea/)\n    \n2. Checkout this Project\n\n3. Integrate the project with your IDE (\"--intellij--\" or \"--eclipse--\")\n    ```bash\n    grails integrate-with --intellij\n    ```\n\n4. I am using forked version of [grails-spring-batch](https://github.com/xmlking/grails-spring-batch), slightly modified to make it work with Grails 2.4.x.\n\n    we need to checkout this plugin first and build it locally so that plugin will be installed into local Maven cache.\n\n    Run following command in `grails-spring-batch` project, to install the plugin into local Maven cache.\n\n    ```bash\n    maven-install\n    ```\n\n5. Then run following command in the project that is using this `grails-spring-batch` plugin.\n\n   This will make the main project use local `grails-spring-batch` plugin instead of original plugin from grails repository.\n\n    ```bash\n    clean-all\n    ```\n\n6. To start the MongoDB \n\n    ```bash\n     mongod --config data/mongod.conf\n    ```\n\n6. To start the server in dev mode.\n    \n    ```bash\n    grails run-app\n    ```\n    \n7. To load the database from flat file, run the spring batch job at `http://localhost:8080/apiApp/batch/springBatchJob/list`\n      \n8. Authentication is configured to use LDAP/AD store first. if LDAP/AD is not available, it will fallback to Database user store.\n\n    You can find test username/passwords in [BootStrap.groovy](grails-app/conf/BootStrap.groovy)\n\n\n### REST URLs\n    http://localhost:8080/apiApp/drugs.json?max=2\n    http://localhost:8080/apiApp/drugs.json?max=2\u0026offset=100\n    http://localhost:8080/apiApp/drugs.json?max=2\u0026offset=100\u0026fields=ndc,id\n\n    http://localhost:8080/apiApp/drugs/search?format=xml\u0026labelerName=ONVATEC\u0026productName=AKIN\n    http://localhost:8080/apiApp/drugs/search?format=xml\u0026labelerName=ONVATEC\u0026productName=AKIN\u0026max=2\n\n    http://localhost:8080/apiApp/drugs/1.json\n    http://localhost:8080/apiApp/drugs/1.json?fields=ndc,id\n    http://localhost:8080/apiApp/drugs/1.json?fields=ndc,id,recordTypeE\n    \n    http://localhost:8080/apiApp/api/type/devices\n    http://localhost:8080/apiApp/api/type/devices?lang=es\n    http://localhost:8080/apiApp/api/type/devices?lang=en","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmlking%2Fgrails-batch-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmlking%2Fgrails-batch-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmlking%2Fgrails-batch-rest/lists"}