{"id":22976661,"url":"https://github.com/kaichiro/uuid-api-mysql-test","last_synced_at":"2026-04-12T00:05:07.625Z","repository":{"id":100002075,"uuid":"189676221","full_name":"kaichiro/uuid-api-mysql-test","owner":"kaichiro","description":"Creating an API for accessing data, MySQL, using NodeJS and Express. UUID-V4","archived":false,"fork":false,"pushed_at":"2022-12-10T17:54:08.000Z","size":454,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T08:22:52.915Z","etag":null,"topics":["body-parser","dotenv","ejs","express","javascript","nodejs","uuid","uuid-v4"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/kaichiro.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":"2019-06-01T01:12:12.000Z","updated_at":"2019-06-03T12:44:19.000Z","dependencies_parsed_at":"2023-05-11T15:15:21.355Z","dependency_job_id":null,"html_url":"https://github.com/kaichiro/uuid-api-mysql-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kaichiro/uuid-api-mysql-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaichiro%2Fuuid-api-mysql-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaichiro%2Fuuid-api-mysql-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaichiro%2Fuuid-api-mysql-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaichiro%2Fuuid-api-mysql-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaichiro","download_url":"https://codeload.github.com/kaichiro/uuid-api-mysql-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaichiro%2Fuuid-api-mysql-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267470062,"owners_count":24092352,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["body-parser","dotenv","ejs","express","javascript","nodejs","uuid","uuid-v4"],"created_at":"2024-12-15T00:54:21.451Z","updated_at":"2026-04-12T00:05:07.597Z","avatar_url":"https://github.com/kaichiro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple API to access MySQL database, using NodeJS and Express\n\n---\n\n**Database Schema**\n\n* *create database* \n\n```sql\nCREATE DATABASE `uuid-test` \n/*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ \n/*!80016 DEFAULT ENCRYPTION='N' */;\n```\n\n* *create table* \n\n```sql\nCREATE TABLE `customers` (\n  `id` binary(16) NOT NULL,\n  `name` varchar(255) DEFAULT NULL,\n  `birth_day` date DEFAULT NULL,\n  PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n```\n\n---\n\n* *clone this project*\n    ```sh\n    git clone https://github.com/kaichiro/uuid-api-mysql-test.git\n    cd uuid-api-mysql-test\n    ```\n\n* *Configuration file (database connect)*\n  * *.env (e.g.)*\n    ```\n    APP_PORT=3003\n\n    SHOW_SQL_CMD=true\n\n    DB_HOST=127.0.0.1\n    DB_PORT=3306\n    DB_DATABASE=uuid-test\n    DB_USER=root\n    DB_PASSWORD=\n    ```\n\n* *initialize this project*\n    ```sh\n    npm install\n    npm start\n    ```\n    or\n    ```sh\n    yarn \u0026\u0026 yarn start\n    ```\n\n---\n\n## Base URL: `http://localhost:3003`\n\n---\n\n**Method: POST**\n\n* *create:* \n  * target: `/`\n  * request (body)\n    ```sh\n    {\n        \"name\": \"Arnold Schwarzenegger\",\n        \"birth_day\": \"1986-10-02T03:00:00.000Z\"\n    }\n    ```\n  * result:\n    ```sh\n    {\n        \"id\": \"acb9d2cf-5f49-4f6b-9a6c-b3c93480e054\",\n        \"name\": \"Arnold Schwarzenegger\",\n        \"birth_day\": \"1986-10-02T03:00:00.000Z\"\n    }\n    ```\n![](./videos/create.gif)\n---\n\n**Method: GET**\n\n* *getAll:*\n  * targe: `/`\n  * result:\n    ```sh\n    [\n        {\n            \"id\": \"acb9d2cf-5f49-4f6b-9a6c-b3c93480e054\",\n            \"name\": \"Arnold Schwarzenegger\",\n            \"birth_day\": \"1947-06-30T03:00:00.000Z\"\n        },\n        {\n            \"id\": \"43574cdf-34ba-4e6e-8e84-e2b0800aa84f\",\n            \"name\": \"Edward Furlong\",\n            \"birth_day\": \"1977-08-02T03:00:00.000Z\"\n        }\n    ]\n    ```\n![](./videos/getAll.gif)\n* *getById:* \n  * targe: `/:id`\n  * e.g.: `/acb9d2cf-5f49-4f6b-9a6c-b3c93480e054`\n  * result:\n    ```sh\n    {\n        \"id\": \"acb9d2cf-5f49-4f6b-9a6c-b3c93480e054\",\n        \"name\": \"Arnold Schwarzenegger\",\n        \"birth_day\": \"1947-06-30T03:00:00.000Z\"\n    }\n    ```\n![](videos/getById.gif)\n* *getLikeName:* \n  * taget: `/name/:name`\n  * e.g.: `/arnold`\n  * result:\n    ```sh\n    [\n        {\n            \"id\": \"acb9d2cf-5f49-4f6b-9a6c-b3c93480e054\",\n            \"name\": \"Arnold Schwarzenegger\",\n            \"birth_day\": \"1947-06-30T03:00:00.000Z\"\n        }\n    ]\n    ```\n![](./videos/getLikeName.gif)\n\n---\n\n**Method: PUT**\n\n* *update:*\n  * taget: `/`\n  * request (body)\n    ```sh\n    {\n        \"id\": \"43574cdf-34ba-4e6e-8e84-e2b0800aa84f\",\n        \"name\": \"Edward Furlong (John Connor)\",\n        \"birth_day\": \"1977-08-02\"\n    }\n    ```\n  * result:\n    ```sh\n    {\n        \"id\": \"43574cdf-34ba-4e6e-8e84-e2b0800aa84f\",\n        \"name\": \"Edward Furlong (John Connor)\",\n        \"birth_day\": \"1977-08-02\"\n    }\n    ```\n![](./videos/update.gif)\n\n---\n\n**Method: DELETE**\n\n* *deleteById:*\n  * taget: `/:id`\n  * e.g.: `/b7dbfbbd-6391-46ce-becc-83a83b00e4eb`\n  * result:\n    ```sh\n    { \"message\": \"Record deleted successfully!\" }\n    ```\n    or\n    ```sh\n    { \"message\": \"No records found to be deleted!\" }\n    ```\n![](./videos/deleteById.gif)\n\n---\nby [Kaichiro Fukuda](https://github.com/kaichiro)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaichiro%2Fuuid-api-mysql-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaichiro%2Fuuid-api-mysql-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaichiro%2Fuuid-api-mysql-test/lists"}