{"id":20289934,"url":"https://github.com/mynickleo/auth-service-go","last_synced_at":"2025-03-04T04:42:05.952Z","repository":{"id":262403456,"uuid":"886886034","full_name":"mynickleo/auth-service-go","owner":"mynickleo","description":"Auth-service-backend. Go, Postgres, Redis, Gomail, Sqlc, S3 MinIO","archived":false,"fork":false,"pushed_at":"2024-11-12T08:04:29.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T08:52:23.716Z","etag":null,"topics":["docker-compose","go","golang","postgres","redis","s3-storage","sqlc"],"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/mynickleo.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-11-11T19:31:53.000Z","updated_at":"2024-11-12T11:29:48.000Z","dependencies_parsed_at":"2024-11-12T09:19:06.329Z","dependency_job_id":"e2fa28b0-8257-4594-b42f-e1ed93467278","html_url":"https://github.com/mynickleo/auth-service-go","commit_stats":null,"previous_names":["mynickleo/auth-service-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mynickleo%2Fauth-service-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mynickleo%2Fauth-service-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mynickleo%2Fauth-service-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mynickleo%2Fauth-service-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mynickleo","download_url":"https://codeload.github.com/mynickleo/auth-service-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241787488,"owners_count":20020099,"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":["docker-compose","go","golang","postgres","redis","s3-storage","sqlc"],"created_at":"2024-11-14T15:05:34.247Z","updated_at":"2025-03-04T04:42:05.931Z","avatar_url":"https://github.com/mynickleo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✨ Auth Service Backend\n\nЭто небольшой бэкенд-сервис для управления аутентификацией и авторизацией пользователей, написанный на Go. Сервис поддерживает регистрацию, вход в систему, управление пользователями и ролями. Этот проект разработан с использованием PostgreSQL для хранения данных, Redis для кеширования, Gomail для отправки электронных писем, и MinIO (S3-совместимое хранилище) для хранения изображений аватаров\n\n\u003e This is a small backend service for user authentication and authorization, written in Go. The service supports registration, login, user and role management. This project uses PostgreSQL for data storage, Redis for caching, Gomail for email sending, and MinIO (an S3-compatible storage) for storing user avatars\n\n## 📦 Используемые технологии | Technologies Used\n- Go\n- PostgreSQL\n- Redis\n- Gomail\n- Sqlc\n- MinIO (S3): Bonus\n\n## 🚀 Основные возможности | Key Features\n- Регистрация и аутентификация пользователей\n- Отправка писем для подтверждения пароля\n- Загрузка и хранение аватаров пользователей\n- Кеширование данных с помощью Redis\n\n\u003e - User registration and authentication\n\u003e - Email notifications for verification\n\u003e - User avatar upload and storage\n\u003e - Data caching with Redis\n\n## 📂 Структура проекта | Project Structure\n- `cmd/server/`\n- `config/`\n- `internal/`\n- - `app/`\n- - `controllers/`\n- - `database/`\n- - - `postgres/`\n- - - - `migrations/`\n- - - - `queries/`\n- - - `redis/`\n- - `interfaces/`\n- - `models/`\n- - `module/`\n- - `repository/`\n- - `services/`\n- - `utils/`\n- `pkg/`\n- - `minio/`\n- - `sqlcqueries/`\n\n## ⚙️ Установка и запуск | Installation and Launch\n\n```bash\ngit clone https://github.com/mynickleo/auth-service-go.git\ncd auth-service-go\n```\n\n```bash\ndocker-compose up -d\n```\n\n```bash\ngo run cmd/server/main.go\n```\n\n## 🔗 API\n\n**`Аутентификация | Authentication`**\n- POST /api/auth/send-mail \n- POST /api/auth/register \n- POST /api/auth/login \n\n**`Системный статус | System Status`**\n- GET /api/ready\n\n**`Управление ролями | Role Management`**\n\u003e Проверка на jwt токен | Checking for a jwt token\n- POST /api/roles\n- POST /api/user-roles\n- GET /api/roles\n- GET /api/roles/:id\n- GET /api/user-role/:id\n- PUT /api/roles/:id\n- DELETE /api/roles\n\n**`Управление пользователями | User Management`**\n\u003e Проверка на jwt токен | Checking for a jwt token\n- POST /api/users\n- POST /api/users/avatar\n- GET /api/users\n- GET /api/users/:id\n- PUT /api/users/:id\n- DELETE /api/users/:id\n\n## 📬 Обратная связь | Feedback\nЕсли у вас есть предложения или вы нашли ошибки, создайте Issue или отправьте Pull Request. Если вам понравилось, то можете дать ⭐ этому репозиторию\n\u003e If you have suggestions or find any issues, feel free to open an Issue or submit a Pull Request! If you liked it, you can give ⭐ to this repository","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmynickleo%2Fauth-service-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmynickleo%2Fauth-service-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmynickleo%2Fauth-service-go/lists"}