{"id":17241804,"url":"https://github.com/maciekmm/hackathon-hackyeah-foodaway-backend","last_synced_at":"2025-10-14T17:12:51.648Z","repository":{"id":79398627,"uuid":"108642343","full_name":"maciekmm/hackathon-hackyeah-foodaway-backend","owner":"maciekmm","description":"HackYeah! Entry - Food sharing application","archived":false,"fork":false,"pushed_at":"2017-10-29T09:44:18.000Z","size":529,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T13:07:53.339Z","etag":null,"topics":["hackathon"],"latest_commit_sha":null,"homepage":"https://foodaway.kochanow.ski/","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/maciekmm.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":"2017-10-28T11:06:02.000Z","updated_at":"2017-11-20T10:28:44.000Z","dependencies_parsed_at":"2023-03-08T17:45:42.262Z","dependency_job_id":null,"html_url":"https://github.com/maciekmm/hackathon-hackyeah-foodaway-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maciekmm/hackathon-hackyeah-foodaway-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fhackathon-hackyeah-foodaway-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fhackathon-hackyeah-foodaway-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fhackathon-hackyeah-foodaway-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fhackathon-hackyeah-foodaway-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maciekmm","download_url":"https://codeload.github.com/maciekmm/hackathon-hackyeah-foodaway-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maciekmm%2Fhackathon-hackyeah-foodaway-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020087,"owners_count":26086805,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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":["hackathon"],"created_at":"2024-10-15T06:11:26.584Z","updated_at":"2025-10-14T17:12:51.621Z","avatar_url":"https://github.com/maciekmm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HackYeah Entry\n\nFoodsharing idea implementation.\n\n## Running\n\nIn order to start the backend you need to have a docker-compose and run the following commands:\n\n```bash\ncp ./credentials.env.sample ./credentials.env\nvi ./credentials.env #change values in credentials.env to yours\ndocker-compose up --build\n```\n\n### Generating fake data\n\n```bash\ndocker exec hackyeah_api_1 go run cmd/mock/main.go N\n```\n\nwhere N is a number of records to be generated\n\n## Endpoints\n\n### POST /accounts/register/\n\nSample request:\n\n```json\n{\n    \"name\": \"Your Name\",\n    \"email\": \"email@example.com\",\n    \"password\": \"your-password\"\n}\n```\n\nSample response:\n\n```json\n{\n    \"token\": \"JWT-token\"\n}\n```\n\nAll future requests have to contain `Authorization: Bearer YOUR-JWT-TOKEN` header. Token is valid for 24h\n\n### POST /accounts/login/\n\n```json\n{\n    \"email\": \"email@example.com\",\n    \"password\": \"your-password\"\n}\n```\n\nSample response:\n\n```json\n{\n    \"token\": \"JWT-token\"\n}\n```\n\n### GET /accounts/token/\n\nUsed to refresh expired token. Pass old token in `Authorization` header and a new one will be returned.\n\nSample response:\n\n```json\n{\n    \"token\": \"new-jwt-token\"\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaciekmm%2Fhackathon-hackyeah-foodaway-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaciekmm%2Fhackathon-hackyeah-foodaway-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaciekmm%2Fhackathon-hackyeah-foodaway-backend/lists"}