{"id":21625623,"url":"https://github.com/eljandoubi/crm-backend","last_synced_at":"2026-04-05T08:35:52.513Z","repository":{"id":225420655,"uuid":"765864615","full_name":"eljandoubi/CRM-Backend","owner":"eljandoubi","description":"Simple CRM backend written in Go","archived":false,"fork":false,"pushed_at":"2024-03-02T12:37:57.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T03:42:10.520Z","etag":null,"topics":["backend","docker","golang","postgresql","restful-api","static-site"],"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/eljandoubi.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":"2024-03-01T19:17:10.000Z","updated_at":"2024-03-02T12:39:39.000Z","dependencies_parsed_at":"2024-03-02T01:31:09.116Z","dependency_job_id":"d0e7af0a-3ad9-49a8-9166-8fec86c5f237","html_url":"https://github.com/eljandoubi/CRM-Backend","commit_stats":null,"previous_names":["eljandoubi/crm-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eljandoubi/CRM-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eljandoubi%2FCRM-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eljandoubi%2FCRM-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eljandoubi%2FCRM-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eljandoubi%2FCRM-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eljandoubi","download_url":"https://codeload.github.com/eljandoubi/CRM-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eljandoubi%2FCRM-Backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31430009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"last_error":"SSL_read: 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":["backend","docker","golang","postgresql","restful-api","static-site"],"created_at":"2024-11-25T01:09:51.491Z","updated_at":"2026-04-05T08:35:52.485Z","avatar_url":"https://github.com/eljandoubi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRM-Backend\n\nA simple CRM backend written in Go.\n\n## Set up PostgreSQL via Docker\n\n```bash \ndocker run --name my_postgres -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres\n```\n\nWait a couple of minutes for PostgreSQL to start, and then run the following commands:\n\n```bash\ndocker exec -it my_postgres psql -U user\n\nCREATE DATABASE db_customers;\n\n\\q\n```\n\n## Set up the Environment\n\nClone the repository in your `GOPATH`:\n\n```bash\ngo env GOPATH\ncd {put your GOPATH here}/src\ngit clone https://github.com/eljandoubi/CRM-Backend.git\ncd CRM-Backend\n```\n\nThen set up packages and start the server:\n\n```bash\ngo mod init\ngo get github.com/lib/pq\ngo get github.com/gorilla/mux\ngo run main.go\n```\n\n## Test the API\n\nList all customers:\n\n```bash\ncurl -is http://localhost:3000/customers\n```\n\nAdd a customer:\n\n```bash\ncurl -is -X POST -H \"Content-Type: application/json\" -d '{\"ID\":4,\"Name\": \"eljandoubi\", \"Role\": \"Data Scientist\", \"Email\": \"abdel@example.com\", \"Phone\": \"123456789\", \"Contacted\": true}' http://localhost:3000/customers\n```\n\nUpdate a customer:\n\n```bash\ncurl -is -X PUT -H \"Content-Type: application/json\" -d '{\"Name\": \"eljandoubi\", \"Role\": \"Data Scientist\", \"Email\": \"abdel@example.com\", \"Phone\": \"123456789\", \"Contacted\": false}' http://localhost:3000/customers/4\n```\n\nGet a customer:\n\n```bash\ncurl -is http://localhost:3000/customers/4\n```\n\nDelete a customer:\n\n```bash\ncurl -is -X DELETE http://localhost:3000/customers/4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feljandoubi%2Fcrm-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feljandoubi%2Fcrm-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feljandoubi%2Fcrm-backend/lists"}