{"id":19005804,"url":"https://github.com/robert-kratz/web-service-cookie-example","last_synced_at":"2026-05-18T10:34:47.817Z","repository":{"id":110298790,"uuid":"340615535","full_name":"robert-kratz/web-service-cookie-example","owner":"robert-kratz","description":" This project aims to elucidate the significance of online cookies through a simple website designed for solving mathematical problems.","archived":false,"fork":false,"pushed_at":"2024-04-01T23:26:34.000Z","size":44,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T07:40:14.605Z","etag":null,"topics":["express","web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/robert-kratz.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":"2021-02-20T09:33:58.000Z","updated_at":"2025-10-14T18:29:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9cbb9d2-8864-4704-9213-5dc67c8f9d3e","html_url":"https://github.com/robert-kratz/web-service-cookie-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robert-kratz/web-service-cookie-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-kratz%2Fweb-service-cookie-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-kratz%2Fweb-service-cookie-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-kratz%2Fweb-service-cookie-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-kratz%2Fweb-service-cookie-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robert-kratz","download_url":"https://codeload.github.com/robert-kratz/web-service-cookie-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-kratz%2Fweb-service-cookie-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33174863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"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":["express","web"],"created_at":"2024-11-08T18:29:16.749Z","updated_at":"2026-05-18T10:34:47.800Z","avatar_url":"https://github.com/robert-kratz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web-service-cookie-example\n\nThis project is designed to illustrate the role of online cookies using a straightforward website that allows users to solve mathematical problems. To participate, users must enter their nickname and age before tackling ten problems. Upon completion, the website saves and displays their nickname and age on a leaderboard, showcasing the practical application of cookies for personalized user experiences.\n\n\n### Getting started\n\nStart by cloning this repository, make sure `nodejs` and `git` is installed on your machine\n\n```\n$ git clone https://github.com/robert-kratz/web-service-cookie-example.git\n```\n\nInstall dependencies from commandline\n\n```\n$ npm install\n```\n\nNext you should edit the `config.json`, start by defining your service port (default is 8080) and set the cookie secret, make sure you are not sharing this secret\n\n```\n{\n    \"serviceport\": 8080,\n    \"cookiesecret\": \"YOUR SECRET HERE\"\n}\n```\nAnd you are on your way, go ahead and start the process\n\n```\n$ node index.js\n```\n\nNow you can access your website by opening `http://localhost:{YOUR PORT}`\n\n### Configurate math problems\n\nLocate the `problems.json` file in the main directory, you can freely add or remove math problems\n\n```\n{\n    \"problems\": [\n        {\n            \"task\": \"10x = 100\",\n            \"answer\": \"10\",\n            \"task_message\": \"What is the value of x\"\n        }\n    ]\n}\n```\n\nYou need to restart the application so the changes take effect\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobert-kratz%2Fweb-service-cookie-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobert-kratz%2Fweb-service-cookie-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobert-kratz%2Fweb-service-cookie-example/lists"}