{"id":17471109,"url":"https://github.com/mikeacosta/business-api","last_synced_at":"2026-04-12T18:58:36.381Z","repository":{"id":150326725,"uuid":"399914164","full_name":"mikeacosta/business-api","owner":"mikeacosta","description":"Spring REST Web Service","archived":false,"fork":false,"pushed_at":"2021-12-18T02:23:04.000Z","size":247,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T19:03:04.459Z","etag":null,"topics":["mysql","rest-api","spring-mvc"],"latest_commit_sha":null,"homepage":"","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/mikeacosta.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-08-25T18:07:09.000Z","updated_at":"2023-03-28T15:49:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc4aef3f-0ca9-4166-be09-2e7df40c0dc2","html_url":"https://github.com/mikeacosta/business-api","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/mikeacosta%2Fbusiness-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeacosta%2Fbusiness-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeacosta%2Fbusiness-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeacosta%2Fbusiness-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeacosta","download_url":"https://codeload.github.com/mikeacosta/business-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240154953,"owners_count":19756548,"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":["mysql","rest-api","spring-mvc"],"created_at":"2024-10-18T16:26:43.457Z","updated_at":"2026-04-12T18:58:31.360Z","avatar_url":"https://github.com/mikeacosta.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# business-api\n\n[![CircleCI](https://circleci.com/gh/mikeacosta/business-api/tree/main.svg?style=svg)](https://circleci.com/gh/mikeacosta/business-api/tree/main)\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"spring.png\" width=\"45%\" height=\"45%\" /\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n    \u003cbr /\u003e\n    \u003cimg src=\"dev_db.png\" width=\"45%\" height=\"45%\" /\u003e\n\u003c/p\u003e\n\n---\n\n## MySQL Docker Container\n\n1. Run this command from this repo's root directory (where the `docker-compose.yml` file is).  This will start the container.  The `-d` option will leave it running in the background.\n\n```\n$ docker-compose up -d\n```\n\n2. Run `docker ps` to confirm the container is running.\n\n```\n$ docker ps\nCONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS          PORTS                                                  NAMES\nbe214cc27155   mysql     \"docker-entrypoint.s…\"   30 minutes ago   Up 17 seconds   33060/tcp, 0.0.0.0:3307-\u003e3306/tcp, :::3307-\u003e3306/tcp   business-api_db_1\n```\n\n3. Access the running container `business-api_db_1`.  The `-it` flag accesses the container in an interactive mode.\n\n```\n$ docker exec -it business-api_db_1 bash \n```\n\n4. At the bash prompt from inside the container, run file `mysql.sql` on MySQL server, entering the password defined in `docker-compose.yml` when prompted.\n\n```\n# mysql -u root -p dev_db \u003e mysql.sql\nEnter password: \n```\n\n5. Connect to MySQL server.\n\n```\n# mysql -u root -p dev_db\nEnter password:\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\n\n...\n\nmysql\u003e\n```\n\n6. Run various [MySQL commands](https://phoenixnap.com/kb/mysql-commands-cheat-sheet).\n```\nmysql\u003e SHOW DATABASES;\n+--------------------+\n| Database           |\n+--------------------+\n| dev_db             |\n| information_schema |\n| mysql              |\n| performance_schema |\n| sys                |\n+--------------------+\n5 rows in set (0.00 sec)\n\nmysql\u003e exit\nBye\n```\n\n7. Exit the container.\n```\n# exit\n```\n\n8. Stop and remove the running container.\n```\n$ docker-compose down\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeacosta%2Fbusiness-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeacosta%2Fbusiness-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeacosta%2Fbusiness-api/lists"}