{"id":20332767,"url":"https://github.com/knowledgefactory4u/go-lang-angular-mysql-crud","last_synced_at":"2025-04-11T21:33:09.900Z","repository":{"id":45832045,"uuid":"453429041","full_name":"knowledgefactory4u/go-lang-angular-mysql-crud","owner":"knowledgefactory4u","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-18T14:09:47.000Z","size":164,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T17:46:52.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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}},"created_at":"2022-01-29T14:59:27.000Z","updated_at":"2024-01-15T11:13:50.000Z","dependencies_parsed_at":"2022-09-15T02:12:13.686Z","dependency_job_id":null,"html_url":"https://github.com/knowledgefactory4u/go-lang-angular-mysql-crud","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/knowledgefactory4u%2Fgo-lang-angular-mysql-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowledgefactory4u%2Fgo-lang-angular-mysql-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowledgefactory4u%2Fgo-lang-angular-mysql-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowledgefactory4u%2Fgo-lang-angular-mysql-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowledgefactory4u","download_url":"https://codeload.github.com/knowledgefactory4u/go-lang-angular-mysql-crud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248483390,"owners_count":21111441,"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.861Z","updated_at":"2025-04-11T21:33:09.873Z","avatar_url":"https://github.com/knowledgefactory4u.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-lang-mysql-angular-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```\nng serve\n```\nAccess the URL via browser - http://localhost:4200/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowledgefactory4u%2Fgo-lang-angular-mysql-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowledgefactory4u%2Fgo-lang-angular-mysql-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowledgefactory4u%2Fgo-lang-angular-mysql-crud/lists"}