{"id":20548017,"url":"https://github.com/lfcifuentes/auth-ddd","last_synced_at":"2026-05-21T16:03:23.167Z","repository":{"id":254167822,"uuid":"845607891","full_name":"lfcifuentes/auth-ddd","owner":"lfcifuentes","description":"API Server for auth service","archived":false,"fork":false,"pushed_at":"2024-08-22T05:22:19.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T16:23:42.623Z","etag":null,"topics":["authentication","ddd","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lfcifuentes.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":"2024-08-21T15:15:40.000Z","updated_at":"2024-08-22T05:22:22.000Z","dependencies_parsed_at":"2024-08-21T21:11:21.421Z","dependency_job_id":"b5025350-30f0-4ac0-ac95-c57dd13b06dc","html_url":"https://github.com/lfcifuentes/auth-ddd","commit_stats":null,"previous_names":["lfcifuentes/auth-ddd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfcifuentes%2Fauth-ddd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfcifuentes%2Fauth-ddd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfcifuentes%2Fauth-ddd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfcifuentes%2Fauth-ddd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfcifuentes","download_url":"https://codeload.github.com/lfcifuentes/auth-ddd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242151670,"owners_count":20080139,"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","go","golang"],"created_at":"2024-11-16T02:11:40.481Z","updated_at":"2026-05-21T16:03:23.101Z","avatar_url":"https://github.com/lfcifuentes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Auth Services\n\nExample project of an authentication system using Go\n\n## Tech Stack\n - [Go 1.23](https://go.dev/doc/install)\n - [Gin](https://gin-gonic.com/)\n - [Postgres](https://www.postgresql.org)\n - [Docker](https://www.docker.com)\n   - [Docker Compose](https://docs.docker.com/compose/)\n\n\n## Installation\n\nFollow these steps to install the project:\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/lfcifuentes/auth-ddd\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd auth-ddd\n    ```\n3. Install the dependencies:\n    ```sh\n    go mod tidy\n    ```\n\n# Makefile\nHere is a list of the available commands in the Makefile and their description:\n\nStarts the Docker containers in the background.\n```sh\nmake docker_up\n```\n\nStops and removes the Docker containers.\n```sh\nmake docker_down:\n```\n\nGenerates the API documentation using swag.\n```sh\nmake docs_generate\n```\n\nFormats the documentation code using swag.\n```sh\nmake docs_format\n```\n\n### Migrations\n\nRun migrations\n```sh\nmake migrate\n```\n\nAdd new migration\n```sh\n make add_migration name=mew_migration_name\n```\n\nRollback all migrations\n```sh\nmake migrate_down\n```\n\nRollback a specific migration\n```sh\nmake migrate_down steps=1\n```\n\n### Testing\n\nRun test\n```sh\nmake test\n```\n\nRun test with coverage\n```sh\nmake test_coverage\n```\n\n### Project structure\n\n```\n/app\n  /cmd\n    server.go                # Entry point of the application\n  /db\n    /migrations              # Database migrations\n  /infraestructure\n    /http\n      /middleware            # Api Rest Middleware\n      /router                # API base route definitions\n  /internal\n    /adapters\n      /pgsql                 # PostgreSQL database adapter\n      /validator             # Playground Validator adapter\n  /modules\n    /auth\n      /domain\n        /entities\n          user.go            # User entity definition\n        /services\n          auth_services.go   # Domain services for authentication\n      /application\n        /usecases\n          login_usecase.go   # Use case for user login\n      /data\n        /repositories\n          auth_repository.go # Repository for user data\n  /pkg\n    jwt.go                   # JWT utility\ndocker-compose               # Docker compose configuration file\nMakefile                     # Makefile with project commands\nREADME.md                    # Project documentation\ngo.mod                       # Go module file\ngo.sum                       # Go dependencies file\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfcifuentes%2Fauth-ddd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfcifuentes%2Fauth-ddd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfcifuentes%2Fauth-ddd/lists"}