{"id":16119081,"url":"https://github.com/benslabbert/user-task-manager","last_synced_at":"2025-04-06T10:17:22.665Z","repository":{"id":101553818,"uuid":"155157107","full_name":"BenSlabbert/user-task-manager","owner":"BenSlabbert","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-29T09:20:13.000Z","size":3068,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T15:46:09.022Z","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/BenSlabbert.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":"2018-10-29T05:34:20.000Z","updated_at":"2018-10-29T09:20:15.000Z","dependencies_parsed_at":"2023-06-18T23:38:06.165Z","dependency_job_id":null,"html_url":"https://github.com/BenSlabbert/user-task-manager","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/BenSlabbert%2Fuser-task-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fuser-task-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fuser-task-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fuser-task-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenSlabbert","download_url":"https://codeload.github.com/BenSlabbert/user-task-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464232,"owners_count":20942970,"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-09T20:52:36.536Z","updated_at":"2025-04-06T10:17:22.639Z","avatar_url":"https://github.com/BenSlabbert.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nThis is a Spring Boot app which manages users and their tasks.\n\nWhen a task is created it has an initial state of `PENDING`. \n\nEvery minute the job `UpdateTaskJob` updates all tasks marked as `Pending` to `DONE` where the current time is greater and equal to the tasks' `date_time` field.\n\n## Requirements\n\n* [Docker](https://www.docker.com/)\n* Running MySQL instance with empty schema and valid credentials\n* [Liquibase](https://www.liquibase.org/) (tested with v3.5.3) + [MySQL Connector](https://mvnrepository.com/artifact/mysql/mysql-connector-java) (tested with v5.1.35)\n\n## Build\n\n### Verify\n\n`./mvnw clean verify`\n\n### Test\n\n`./mvnw clean test`\n\n### Executable JAR\n\n`./mvnw clean package`\n\n### Docker Image\n\n`./docker-build.sh`\n\nThis builds a docker image tagged as `user-task-manager/manager:latest`\n\n## DB migration\n\nLiquibase change file = `liquibase.sql`\n\nNote: it is required to run the liquibase `update` script before starting the application.\n\n## Example Run\n\n`docker container run --rm --net=\"host\" -e \"DB_USERNAME=root\" -e \"DB_PASSWORD=root\" -e \"DB_URL=jdbc:mysql://localhost:3306/manager\" user-task-manager/manager`\n\n* `--net=host` connect to locally running db instance\n* `DB_USERNAME`, `DB_PASSWORD`, `DB_URL` are all required fields\n \n#### Debug Logging\n \nset the active profile: `-e \"spring.profiles.active=dev\"`\n\n#### Custom Port\n\n`-e \"server.port=8082\"`\n\n### Validation and Exception Handling\n\nIf a user or task cannot be found an `com.user.manager.api.exception.APIException` is thrown.\n\nThese exceptions are handled in: `com.user.manager.api.advice.ApiExceptionHandler`.\n\nValidation is handled in: `com.user.manager.api.validator.UserApiValidator`.\n\n#### Creating a User\n\nRequired fields: `user_name`, `first_name`, `last_name`.\n\n#### Updating a User\n\nRequired fields, at least one of: `first_name`, `last_name`. `user_name` is ignored.\n\n#### Creating a Task\n\nRequired fields: `name`, `description`, `date_time`.\n\n#### Updating a Task\n\nRequired field: `name`.\n\n## Postman\n\n* [Collection](https://www.getpostman.com/collections/8d7d771e3f118c92ac3a)\n\n* [Documentation](https://documenter.getpostman.com/view/1229795/RzZ1sNvt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenslabbert%2Fuser-task-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenslabbert%2Fuser-task-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenslabbert%2Fuser-task-manager/lists"}