{"id":24756962,"url":"https://github.com/dev-saiful/umanagement","last_synced_at":"2026-05-06T17:33:43.839Z","repository":{"id":273379897,"uuid":"918197380","full_name":"dev-saiful/umanagement","owner":"dev-saiful","description":"General User Management System API Design with Golang | Gin | Postgresql","archived":false,"fork":false,"pushed_at":"2025-02-03T16:04:15.000Z","size":30097,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T00:44:06.154Z","etag":null,"topics":[],"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/dev-saiful.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-17T12:50:29.000Z","updated_at":"2025-02-03T16:04:18.000Z","dependencies_parsed_at":"2025-09-03T00:36:43.899Z","dependency_job_id":"36ce6498-bee0-4e13-818b-ad4a515c208e","html_url":"https://github.com/dev-saiful/umanagement","commit_stats":null,"previous_names":["dev-saiful/umanagement"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-saiful/umanagement","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-saiful%2Fumanagement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-saiful%2Fumanagement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-saiful%2Fumanagement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-saiful%2Fumanagement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-saiful","download_url":"https://codeload.github.com/dev-saiful/umanagement/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-saiful%2Fumanagement/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32704420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-01-28T14:34:48.817Z","updated_at":"2026-05-06T17:33:43.809Z","avatar_url":"https://github.com/dev-saiful.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Management System\n\n## Overview\n\nThe User Management System is a web application that allows administrators to manage users. It includes features such as user authentication, role-based access control, and user data management.\n\n## Technologies\n- Golang\n- PostgreSQL\n- Gin\n- GORM\n- JWT\n- Bcrypt\n\n\n## Features\n\n- User Authentication\n- Role-Based Access Control\n- User Data Management\n- Admin Dashboard\n\n## Installation\n\n### Prerequisites\n\n- Go 1.18 or higher\n- PostgreSQL\n\n### Environment Variables\n\nCreate a `.env` file in the root directory and add the following environment variables:\n\n    DATABASE_HOST=your_database_host \n    DATABASE_USER=your_database_user \n    DATABASE_PASSWORD=your_database_password \n    DATABASE_NAME=your_database_name \n    DATABASE_PORT=your_database_port\n\n### Steps\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/dev-saiful/umanagement.git\n   cd umanagement\n\n2. Install dependencies:\n    ```sh\n    go mod tidy\n\n3. Initialize the database:\n    ```sh\n    go run main.go\n\n## Usage\nRunning the Application\nTo start the application, run:\n```sh\ngo run main.go\n```\n\nAPI Endpoints\n\nAuthentication\n\n* Login\n    * ```POST /api/v1/auth/login```\n    * Request Body: ```{ \"email\": \"user@example.com\", \"password\": \"password\" }```\n    * Response: ```{ \"token\": \"jwt_token\" }```\n\n\nUser Management\n\n* Get All Users\n\n    * ```GET /api/v1/user/users```\n    * Headers: ```{ \"Authorization\": \"Bearer jwt_token\" }```\n    * Response: ```[ { \"id\": 1, \"email\": \"user@example.com\", \"username\": \"username\" } ]```\n\n* Get User by ID\n\n    * ```GET /api/v1/user/users/:id```\n    * Headers: ```{ \"Authorization\": \"Bearer jwt_token\" }```\n    * Response: ```{ \"id\": 1, \"email\": \"user@example.com\", \"username\": \"username\" }```\n\n* Get Admin by Email\n\n    * ```GET /api/v1/user/admin```\n    * Headers: ```{ \"Authorization\": \"Bearer jwt_token\" }```\n    * Response: ```{ \"id\": 1, \"email\": \"admin@example.com\", \"username\": \"admin\", \"role\": \"admin\" }```\n\n\n## Contributing\n1. Fork the repository\n\n2. Create a new branch ```(git checkout -b feature-branch)```\n\n3. Make your changes\n4. Commit your changes ```(git commit -m 'Add new feature')```\n5. Push to the branch ```(git push origin feature-branch)```\n6. Create a new Pull Request\n\n\n## License\nThis project is licensed under the MIT License.\n\n```sh\nThis README provides an overview of the project, installation instructions, usage details, and contribution guidelines. Adjust the content as needed to fit your specific project requirements.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-saiful%2Fumanagement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-saiful%2Fumanagement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-saiful%2Fumanagement/lists"}