{"id":16237332,"url":"https://github.com/declanbyrd/server-sent-events","last_synced_at":"2025-04-03T13:30:33.484Z","repository":{"id":42913726,"uuid":"246936670","full_name":"declanbyrd/server-sent-events","owner":"declanbyrd","description":"Demo showing how data can be updated on a webpage using server-sent events with express.js","archived":true,"fork":false,"pushed_at":"2022-12-07T11:04:24.000Z","size":201,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T05:42:31.629Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/declanbyrd.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":"2020-03-12T21:48:18.000Z","updated_at":"2023-10-27T19:01:37.000Z","dependencies_parsed_at":"2023-01-24T17:00:27.689Z","dependency_job_id":null,"html_url":"https://github.com/declanbyrd/server-sent-events","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/declanbyrd%2Fserver-sent-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declanbyrd%2Fserver-sent-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declanbyrd%2Fserver-sent-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declanbyrd%2Fserver-sent-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/declanbyrd","download_url":"https://codeload.github.com/declanbyrd/server-sent-events/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247009454,"owners_count":20868556,"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-10-10T13:35:21.203Z","updated_at":"2025-04-03T13:30:33.247Z","avatar_url":"https://github.com/declanbyrd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# server-sent-events\n\nHTML5 and Node.js demo of server-sent-events for a group buying application.\n\n## Overview\n\n- `server.js` contains an Express application which is provided by the SPDY library for HTTP/2 support.\n- `deals.js` is the in-memory database of deal and product data.\n- The `static` folder contains the front-end of the application.\n\n## Pre-requisites\n\nAs unencrypted HTTP/2 connections are not supported by browsers, a private key and certificate are required to create a HTTPS server.\n\nTo generate the certificate and key, openssl is required. Once installed, run:\n\n```bash\nopenssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' -keyout localhost-privkey.pem -out localhost-cert.pem\n```\n\nEnsure that the certificate and key are in the root directory of this project.\n\n## Installation\n\nUse the package manager npm to install dependencies.\n\n```bash\nnpm install\n```\n\n## Running the app\n\nOnce pre-requisites are met and packages installed, the app can be started using:\n\n```bash\nnpm run start\n```\n\nThe app is then available at `https://localhost:8080`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeclanbyrd%2Fserver-sent-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeclanbyrd%2Fserver-sent-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeclanbyrd%2Fserver-sent-events/lists"}