{"id":24553007,"url":"https://github.com/npdeehan/camunda-postgrest-example","last_synced_at":"2025-08-23T22:08:54.612Z","repository":{"id":90222807,"uuid":"365976302","full_name":"NPDeehan/Camunda-Postgrest-Example","owner":"NPDeehan","description":"This is an example of how to connect a postgres database to a Camunda Spring Boot application ","archived":false,"fork":false,"pushed_at":"2021-05-10T08:49:00.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T01:34:34.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/NPDeehan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-10T08:47:22.000Z","updated_at":"2021-12-27T13:59:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ce32aa9-66b8-488e-b321-f4397edbdf6b","html_url":"https://github.com/NPDeehan/Camunda-Postgrest-Example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NPDeehan%2FCamunda-Postgrest-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NPDeehan%2FCamunda-Postgrest-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NPDeehan%2FCamunda-Postgrest-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NPDeehan%2FCamunda-Postgrest-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NPDeehan","download_url":"https://codeload.github.com/NPDeehan/Camunda-Postgrest-Example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878491,"owners_count":20362433,"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":"2025-01-23T01:33:50.088Z","updated_at":"2025-03-16T14:15:10.633Z","avatar_url":"https://github.com/NPDeehan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Camunda Spring Boot Application\nSpring Boot Application using [Camunda](http://docs.camunda.org).\n\nThis is a simple example which shows how you can connect Camunda to a postgres database.\n\n\n## How does it work?\n\n### Runing a Postgres Database\nIf you don't already have a postgres database up and running you do so by [installing docker](https://docs.docker.com/get-docker/) and using the `docker-compose.yml` file in the `resources` folder.\n\nTo start the database simple navegate to the directory \n``../src/main/resources`` and run `docker-compose up` \n\nThat will download a postgres image from docker hub and start it up. Once it's finished you'll have a postgres database with the following settings:\n\n```yaml\n environment:\n      POSTGRES_USER: postgres\n      POSTGRES_PASSWORD: postgres\n      POSTGRES_DB: postgres\n    ports:\n      - 5432:5432\n```\n\n### Connecting Camunda to the Database\n\nConnecting the database involves two changes, firstly you have to define the datasource in the `application.yaml` file. \n```yaml\nspring.datasource:\n   type: org.postgresql.ds.PGSimpleDataSource\n   username: postgres\n   password: postgres\n   url: jdbc:postgresql://localhost:5432/postgres\n```\nThen you should get the driver by adding this dependency to your `pom.xml`\n\n```XML\n\u003cdependency\u003e\n\t\u003cgroupId\u003eorg.postgresql\u003c/groupId\u003e\n\t\u003cartifactId\u003epostgresql\u003c/artifactId\u003e\n\u003c/dependency\u003e\n```\n\n### Running the application\nYou can also build and run the process application with Spring Boot.\n\n#### Manually\n1. Build the application using:\n\n```bash\nmvn clean package\n```\n2. Run the *.jar file from the `target` directory using:\n\n```bash\njava -jar target/Camunda-Postgrest-Example.jar\n```\n\nFor a faster 1-click (re-)deployment see the alternatives below.\n\n#### Maven Spring Boot Plugin\n1. Build and deploy the process application using:\n\n```bash\nmvn clean package spring-boot:run\n```\n\n#### Your Java IDE\n1. Run the project as a Java application in your IDE using CamundaApplication as the main class.\n\n### Run and Inspect with Tasklist and Cockpit\nOnce you deployed the application you can run it using\n[Camunda Tasklist](http://docs.camunda.org/latest/guides/user-guide/#tasklist)\nand inspect it using\n[Camunda Cockpit](http://docs.camunda.org/latest/guides/user-guide/#cockpit).\n\n## Environment Restrictions\nBuilt and tested against Camunda Platform version 7.15.0.\n\n## License\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\n\u003c!-- Tweet\nNew @Camunda example: Camunda Spring Boot Application - Spring Boot Application using [Camunda](http://docs.camunda.org). https://github.com/camunda-consulting/code/tree/master/snippets/Camunda-Postgrest-Example\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpdeehan%2Fcamunda-postgrest-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpdeehan%2Fcamunda-postgrest-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpdeehan%2Fcamunda-postgrest-example/lists"}