{"id":21101684,"url":"https://github.com/decodedco/codeed","last_synced_at":"2025-03-14T08:20:46.577Z","repository":{"id":15675579,"uuid":"18413060","full_name":"DecodedCo/codeed","owner":"DecodedCo","description":"Helper files and API documentation for CodeED in a Day","archived":false,"fork":false,"pushed_at":"2014-04-03T18:11:00.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"codeED","last_synced_at":"2025-01-21T02:43:46.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/DecodedCo.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}},"created_at":"2014-04-03T18:09:30.000Z","updated_at":"2014-05-29T12:25:38.000Z","dependencies_parsed_at":"2022-08-28T02:24:30.334Z","dependency_job_id":null,"html_url":"https://github.com/DecodedCo/codeed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DecodedCo%2Fcodeed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DecodedCo%2Fcodeed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DecodedCo%2Fcodeed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DecodedCo%2Fcodeed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DecodedCo","download_url":"https://codeload.github.com/DecodedCo/codeed/tar.gz/refs/heads/codeED","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544535,"owners_count":20308171,"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-19T23:48:04.069Z","updated_at":"2025-03-14T08:20:46.553Z","avatar_url":"https://github.com/DecodedCo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CodeED in a Day\n===============\n\nThis boilerplate helps attendees get started with their CodeED in a Day app.\n\n## HTML\n\n#### head-helper.html\n\nSome simple code snippets to help mobile optimise a web app. Place within your HTML \u0026lt;head\u0026gt;\n\n## JavaScript\n\n#### form.js\n\nJavaScript file that processes a form input, and submits the result to the Decoded Checkin API without refreshing the page (uses jQuery's AJAX helper function)\n\n#### tracker.js\n\nStarter file for writing code that tracks the user's position using the HTML5 geolocation API.\n\n# API Documentation\n\n## What it does\n\nThe Decoded Checkin API makes it possible to store a list of usernames and the number of times each one has been checked in.\n\n## How to use it\n\nThe API is exposed via a URL: `http://api.decoded.co/checkin/`\n\nEach data store consists of a list of usernames and checkins.  To create a new data store using the API, add a unique string of text to the URL:\n\n`http://api.decoded.co/checkin/dd-mm-yy/app-name`\n\nIn the above example we are using the date and a separate app name to create a new data store. By default, this URL will return a list of all the names with the number of checkins in \"JSON\" format.\n\nTo create a new checkin, make an HTTP request to the same URL but append a \"username\" parameter:\n\n`http://api.decoded.co/checking/dd-mm-yy/app-name?username=stephenfry`\n\nIf the \"username\" does not currently appear in the data store, then it is added with the number of checkins set to one (1).  Each subsequent HTTP request will increment the number of checkins for that user by one.  By default, this URL will return a JavaScript object of the form:\n\n`{\n  user: \"StephenFry\",\n  checkins: 5\n}`\n\n\n## How it works\n\nThe API has been implemented using JavaScript/Node.js to run a server on the Raspberry PI.  Each data store file consists of a list of usernames and corresponding number of checkins, stored in \"JSON\" (JavaScript Object Notation) format eg\n\n`{\n  \"StephenFry\": 4,\n  \"RogerMoore\": 16,\n  \"ada4ever\": 7\n}`\n\nThe contents of this file are updated in response to the HTTP requests described above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecodedco%2Fcodeed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecodedco%2Fcodeed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecodedco%2Fcodeed/lists"}