{"id":20263891,"url":"https://github.com/knave-de-coeur/user-api-service","last_synced_at":"2026-06-12T09:31:46.462Z","repository":{"id":148407766,"uuid":"308441469","full_name":"Knave-De-Coeur/user-api-service","owner":"Knave-De-Coeur","description":"A CRUD REST API microservice to handle simple user data","archived":false,"fork":false,"pushed_at":"2024-07-09T07:25:37.000Z","size":273,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T20:08:42.777Z","etag":null,"topics":["golang","microservice","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Knave-De-Coeur.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}},"created_at":"2020-10-29T20:25:02.000Z","updated_at":"2024-07-09T07:25:40.000Z","dependencies_parsed_at":"2024-11-14T11:38:21.213Z","dependency_job_id":"1d6a8e77-ec66-470e-8c4d-527592fb5bdc","html_url":"https://github.com/Knave-De-Coeur/user-api-service","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Knave-De-Coeur/user-api-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knave-De-Coeur%2Fuser-api-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knave-De-Coeur%2Fuser-api-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knave-De-Coeur%2Fuser-api-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knave-De-Coeur%2Fuser-api-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Knave-De-Coeur","download_url":"https://codeload.github.com/Knave-De-Coeur/user-api-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knave-De-Coeur%2Fuser-api-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34238713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","microservice","rest-api"],"created_at":"2024-11-14T11:36:37.168Z","updated_at":"2026-06-12T09:31:46.431Z","avatar_url":"https://github.com/Knave-De-Coeur.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User-API-Server\nGolang Microservice/REST API\n\n## Overview \n\nThis project is a dedicated template project for a simple user CRUD and authorization.\n\n- Sign up \n- Log in \n- Exit\n\n**REST enpoints include;**\n\n- **POST - /api/v1/login** - Generates JWT token used to authorize REST APIs\n- **POST - /api/v1/logout** - Destroys Token \n\n**USER CRUD:** \n- **POST - /api/v1/user** - adds new user \n- **PUT - /api/v1/user/:uID** - modifies user data based on the json payload sent \n- **DELETE - /api/v1/user/:uID** - Either soft deletes or completely removes row from db\n- **GET - /api/v1/user/:uID** - Gets specific user data (if authorized) \n- **GET - /api/v1/users** - Gets list of user data (just email and username)\n\n--- \n\n### Set up \n\nTo build project, start api and run migrations : \n\n``` \ncd multiple-choice-quiz-api-service\n\ndocker-compose up\n```\n---\n\n### Running application\n\n- Set up and run the project with all dependencies and local env:\n\n```\ndocker-compose up -d\n```\n\n- Generate the executable locally:\n```\ngo build -o $GOPATH/bin $GOPATH/src/github.com/knave-de-coeur/user-api/cmd/api/main.go\n```\n\n## Technical Description\n\nDocker was used to create the mysql database and build an image of the api inside another container, attempting to simulate a real-life server environment on my local machine.\n\nI'd just like to thank the following repos for their incredible libraries that helped make this personal project come to life.\nBig shout out to:\n\n- [Viper](https://github.com/spf13/viper) was used to manage configurations including fallbacks.\n- [migrate](https://github.com/golang-migrate/migrate) for it also creates the schema and handles migrations.\n- [gorm](https://github.com/go-gorm/gorm) for the sick ORM that made querying a breeze\n- [gin](https://github.com/gin-gonic/gin) for easy set up with the api\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknave-de-coeur%2Fuser-api-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknave-de-coeur%2Fuser-api-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknave-de-coeur%2Fuser-api-service/lists"}