{"id":20155096,"url":"https://github.com/dmytrodemianchuk/crud-app","last_synced_at":"2026-04-07T23:31:46.028Z","repository":{"id":178033945,"uuid":"637538859","full_name":"DmytroDemianchuk/crud-app","owner":"DmytroDemianchuk","description":"A CRUD application that provides a Web API to the data","archived":false,"fork":false,"pushed_at":"2023-07-29T12:19:51.000Z","size":37688,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T01:41:25.595Z","etag":null,"topics":["docker","docker-compose","go","golang","jwt","postgresql"],"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/DmytroDemianchuk.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":"2023-05-07T21:22:38.000Z","updated_at":"2023-07-22T06:28:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"30af40cc-e043-480f-9e5b-30cd8b04440e","html_url":"https://github.com/DmytroDemianchuk/crud-app","commit_stats":null,"previous_names":["dmytrodemianchuk/crud-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DmytroDemianchuk/crud-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmytroDemianchuk%2Fcrud-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmytroDemianchuk%2Fcrud-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmytroDemianchuk%2Fcrud-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmytroDemianchuk%2Fcrud-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DmytroDemianchuk","download_url":"https://codeload.github.com/DmytroDemianchuk/crud-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmytroDemianchuk%2Fcrud-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31533823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["docker","docker-compose","go","golang","jwt","postgresql"],"created_at":"2024-11-13T23:29:42.724Z","updated_at":"2026-04-07T23:31:46.012Z","avatar_url":"https://github.com/DmytroDemianchuk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRUD Application for Managing Music Lists\n## I used the following concepts during development:\n- Building a Web Application with Go, following the REST API design.\n- The Clean Architecture approach in building the structure of an application. Dependency injection technique.\n- Working with the \u003ca href=\"https://github.com/gorilla/mux\"\u003egorilla/mux\u003c/a\u003e.framework.\n- Working with Postgres database. Run from Docker. Generation of migration files.\n- Working with the database using the sqlx library.\n- Writing SQL queries.\n\n## Requirements\n- go 1.20\n- docker \u0026 docker-compose\n\n## Run Project\n\nDefinition migrating to database\n\n```\nmigrate -path ./schema -database 'postgres://postgres:qwerty@localhost:5436/postgres?sslmode=disable' up\n```\n\nUse `make run` to build\u0026run project\n\n\n## API:\n### POST /auth/sign-up\n\nCreates new user \n\n##### Example Input: \n```\n{\n\t\"name\": \"user\",\n\t\"email\": \"user@user.com\",\n    \"password\": \"password\"\n} \n```\n\n\n### POST /auth/sign-in\n\nRequest to get JWT Token based on user credentials\n\n##### Example Input: \n```\n{\n\t\"email\": \"user@user.com\",\n    \"password\": \"password\"\n} \n```\n\n##### Example Response: \n```\n{\n\t\"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NzEwMzgyMjQuNzQ0MzI0MiwidXNlciI6eyJJRCI6IjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsIlVzZXJuYW1lIjoiemhhc2hrZXZ5Y2giLCJQYXNzd29yZCI6IjQyODYwMTc5ZmFiMTQ2YzZiZDAyNjlkMDViZTM0ZWNmYmY5Zjk3YjUifX0.3dsyKJQ-HZJxdvBMui0Mzgw6yb6If9aB8imGhxMOjsk\"\n} \n```\n\n### POST /musics\n\nCreates new musics\n\n##### Example Input: \n```\n{\n    \"name\": \"Good Morning\",  \n    \"artist\": \"Kanye West\",  \n    \"album\": \"Graduation\",  \n    \"genre\": \"Hip hop\",\n    \"released_year\": 2007\n}\n```\n\n### GET /musics/1\n\nReturns music by id\n\n##### Example Response: \n```\n{\n    \"name\": \"Good Morning\",  \n    \"artist\": \"Kanye West\",  \n    \"album\": \"Graduation\",  \n    \"genre\": \"Hip hop\",\n    \"released_year\": 2007\n} \n```\n\n\n### DELETE /musics\n\nDeletes music by ID:\n\n##### Example Input: \n```\n{\n\t\"id\": \"1\"\n} \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmytrodemianchuk%2Fcrud-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmytrodemianchuk%2Fcrud-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmytrodemianchuk%2Fcrud-app/lists"}