{"id":19279574,"url":"https://github.com/4cecoder/c-server-go-client","last_synced_at":"2025-02-23T21:43:55.461Z","repository":{"id":217906054,"uuid":"745094446","full_name":"4cecoder/C-Server-Go-Client","owner":"4cecoder","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-08T14:11:39.000Z","size":2850,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T16:29:46.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/4cecoder.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-01-18T16:25:36.000Z","updated_at":"2024-01-18T16:26:24.000Z","dependencies_parsed_at":"2024-01-31T02:07:59.552Z","dependency_job_id":"82cc9036-4b91-4d55-a13a-6676363ad723","html_url":"https://github.com/4cecoder/C-Server-Go-Client","commit_stats":null,"previous_names":["4cecoder/c-server-go-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4cecoder%2FC-Server-Go-Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4cecoder%2FC-Server-Go-Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4cecoder%2FC-Server-Go-Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4cecoder%2FC-Server-Go-Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4cecoder","download_url":"https://codeload.github.com/4cecoder/C-Server-Go-Client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240385198,"owners_count":19792980,"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":[],"created_at":"2024-11-09T21:15:37.534Z","updated_at":"2025-02-23T21:43:55.427Z","avatar_url":"https://github.com/4cecoder.png","language":"C","readme":"# C-Server-Go-Client\n\n## Server in C\n\n## Requirements \n- sqlite3\n- libmircohttpd\n- jansson\n- gnutls\n- libcurl-gnutls\n- zlib\n- ulfius\n\n## Running the server\n\n\n### Build \u0026 Run\n\n### Check if running\nGo to `http://localhost:8080/api` and see if there is a response in browser\n\n### Windows\nRun `docker-compose up -d`\n\n### Linux\nTheres a sh file for linux to run a build based on the cmake\n\n\n## Endpoint Curl Usage:\n### Get all patients\n`curl -X GET http://localhost:8080/api/patients`\n\n### Get a specific patient (replace {patientID} with an actual patient ID)\n`curl -X GET http://localhost:8080/api/patients/{patientID}`\n\n### Create a new patient\n`curl -X POST -H \"Content-Type: application/json\" -d '{\"name\": \"John Doe\"}' http://localhost:8080/api/patients`\n\n### Update a specific patient (replace {patientID} with an actual patient ID)\n`curl -X PUT -H \"Content-Type: application/json\" -d '{\"name\": \"Updated Name\"}' http://localhost:8080/api/patients/{patientID}`\n\n### Delete a specific patient (replace {patientID} with an actual patient ID)\n`curl -X DELETE http://localhost:8080/api/patients/{patientID}`\n\n\n# Client in Go\nInstall golang \n\nGo into the client folder\n\n`cd client`\n\nRun client \n`go run main.go`\n\nGo to http://localhost:8081/ in the browser\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4cecoder%2Fc-server-go-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4cecoder%2Fc-server-go-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4cecoder%2Fc-server-go-client/lists"}