{"id":20332760,"url":"https://github.com/knowledgefactory4u/go-lang-reactjs-mysql-crud","last_synced_at":"2025-07-03T01:37:51.714Z","repository":{"id":115257825,"uuid":"451019368","full_name":"knowledgefactory4u/go-lang-reactjs-mysql-crud","owner":"knowledgefactory4u","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-18T14:10:13.000Z","size":179,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T21:39:20.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knowledgefactory4u.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-23T06:08:02.000Z","updated_at":"2024-06-26T07:01:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"726d5dc1-05e9-4a3b-9f72-36c09a53bca3","html_url":"https://github.com/knowledgefactory4u/go-lang-reactjs-mysql-crud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knowledgefactory4u/go-lang-reactjs-mysql-crud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowledgefactory4u%2Fgo-lang-reactjs-mysql-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowledgefactory4u%2Fgo-lang-reactjs-mysql-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowledgefactory4u%2Fgo-lang-reactjs-mysql-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowledgefactory4u%2Fgo-lang-reactjs-mysql-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowledgefactory4u","download_url":"https://codeload.github.com/knowledgefactory4u/go-lang-reactjs-mysql-crud/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowledgefactory4u%2Fgo-lang-reactjs-mysql-crud/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263244715,"owners_count":23436478,"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-11-14T20:28:08.033Z","updated_at":"2025-07-03T01:37:51.664Z","avatar_url":"https://github.com/knowledgefactory4u.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-lang-mysql-react-crud\n\n## Backend local setup\n\n**Create database 'userdb':**\n```\nCREATE DATABASE userdb;\n```\n\n\n**Create table 'users':**\n```\nCREATE TABLE `users` (\n  `id` bigint(20) UNSIGNED NOT NULL,\n  `first_name` varchar(200) NOT NULL,\n  `last_name` varchar(200) NOT NULL,\n  `email` varchar(200) DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\nALTER TABLE `users`\n  ADD PRIMARY KEY (`id`),\n  ADD UNIQUE KEY `id` (`id`);\n\nALTER TABLE `users`\n  MODIFY `id` bigint(20) UNSIGNED NOT NULL \n  AUTO_INCREMENT, AUTO_INCREMENT=11;\n```\n\n\n**Initialize the Go project:**\nInitialize the Go project using the following command\n```\ngo mod init backend\n```\n\n\n**Adding the modules required for the project:**\n```\ngo get github.com/gorilla/mux\ngo get github.com/go-sql-driver/mysql\n```\n**Run the backend app**\n```\ngo run main.go\n```\n\n\n\n## Frontend local setup\n\n**Step 1: The npm install installs all modules that are listed on package.json file and their \n            dependencies**\n```\nnpm install\n```\n\n**Step 2: Run the Frontend application**\n```\nnpm start\n```\nAccess the URL via browser - http://localhost:3000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowledgefactory4u%2Fgo-lang-reactjs-mysql-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowledgefactory4u%2Fgo-lang-reactjs-mysql-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowledgefactory4u%2Fgo-lang-reactjs-mysql-crud/lists"}