{"id":21871702,"url":"https://github.com/isaquemicroservices/authentication","last_synced_at":"2025-04-14T23:56:04.100Z","repository":{"id":64307470,"uuid":"446853463","full_name":"isaquemicroservices/authentication","owner":"isaquemicroservices","description":"🔐 Microservice for user authentication built with golang and gRPC","archived":false,"fork":false,"pushed_at":"2022-05-30T15:01:30.000Z","size":53,"stargazers_count":7,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T23:55:50.680Z","etag":null,"topics":["authentication","ddd-architecture","golang","golang-application","grpc","microservice","open-source","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isaquemicroservices.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-11T14:26:04.000Z","updated_at":"2023-01-15T18:00:09.000Z","dependencies_parsed_at":"2023-01-15T11:00:52.643Z","dependency_job_id":null,"html_url":"https://github.com/isaquemicroservices/authentication","commit_stats":null,"previous_names":["isaqueveras/authentication-microservice"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaquemicroservices%2Fauthentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaquemicroservices%2Fauthentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaquemicroservices%2Fauthentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaquemicroservices%2Fauthentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaquemicroservices","download_url":"https://codeload.github.com/isaquemicroservices/authentication/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981261,"owners_count":21193144,"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":["authentication","ddd-architecture","golang","golang-application","grpc","microservice","open-source","postgresql"],"created_at":"2024-11-28T06:15:01.058Z","updated_at":"2025-04-14T23:56:04.071Z","avatar_url":"https://github.com/isaquemicroservices.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔐 Microservice to authentication users using golang and grpc\n\nCommand to generate protobuf\n```go\n$ protoc -I . protos/auth/auth.proto --go_out=plugins=grpc:./application\n```\n\n### Create folder for config.json file\n```bat\n$ sudo mkdir /etc/ms-auth\n$ sudo touch /etc/ms-auth/config.json\n$ sudo cp ./config.json /etc/ms-auth/config.json\n$ sudo chmod 777 /etc/ms-auth/config.json\n```\nIf you changed the config.json file, use the command at the bottom to update the config.json file on your computer\n```bat\n$ sudo cp ./config.json /etc/ms-auth/config.json\n```\n\n### Command to run the test\n```go\n$ go test ./... --cover\n```\n\n### Command to generate test files\n```go\n$ go test -coverprofile cover.out \n$ go tool cover -html=cover.out -o cover.html\n```\n\n### Create user table in PostgreSQL \n```sql\nCREATE TABLE public.t_users (\n  id serial4 NOT NULL,\n  \"name\" varchar(100) NOT NULL,\n  email varchar(100) NOT NULL,\n  passw varchar(100) NOT NULL,\n  created_at timestamptz NOT NULL DEFAULT now(),\n  updated_at timestamptz NULL,\n  level_id int4 NOT NULL,\n  CONSTRAINT t_users_pkey PRIMARY KEY (id),\n  CONSTRAINT t_users_un UNIQUE (email),\n  CONSTRAINT t_users_fk FOREIGN KEY (level_id) REFERENCES public.t_users_level(id) ON DELETE CASCADE ON UPDATE CASCADE\n);\n\nCREATE TABLE public.t_users_level (\n  id serial4 NOT NULL,\n  \"name\" varchar NOT NULL,\n  created_at timestamptz NOT NULL DEFAULT now(),\n  CONSTRAINT t_users_level_pk PRIMARY KEY (id)\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaquemicroservices%2Fauthentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaquemicroservices%2Fauthentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaquemicroservices%2Fauthentication/lists"}