{"id":17085085,"url":"https://github.com/p1xt/express-demo","last_synced_at":"2026-04-13T22:33:30.879Z","repository":{"id":88167224,"uuid":"121882411","full_name":"P1xt/express-demo","owner":"P1xt","description":"Minimal express.js app to demonstrate the use of fetch with a Pug/Jade template to retrieve data from a REST API served by other routes on the Express app.","archived":false,"fork":false,"pushed_at":"2018-02-17T19:13:01.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T14:11:55.153Z","etag":null,"topics":["dom-manipulation","express","fetch","pug"],"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/P1xt.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":"2018-02-17T18:47:23.000Z","updated_at":"2020-09-15T17:29:33.000Z","dependencies_parsed_at":"2023-03-16T17:15:12.248Z","dependency_job_id":null,"html_url":"https://github.com/P1xt/express-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/P1xt/express-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1xt%2Fexpress-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1xt%2Fexpress-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1xt%2Fexpress-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1xt%2Fexpress-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/P1xt","download_url":"https://codeload.github.com/P1xt/express-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P1xt%2Fexpress-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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":["dom-manipulation","express","fetch","pug"],"created_at":"2024-10-14T13:23:12.830Z","updated_at":"2026-04-13T22:33:30.861Z","avatar_url":"https://github.com/P1xt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express Demo\n\nMinimal express.js app to demonstrate the use of fetch with a Pug/Jade template to retrieve data from a REST API served by other routes on the Express app.\n    \n## Where the interesting stuff happens:\n    \n* Look in views/index.pug for an example of pulling JavaScript files into the Pug template.\n    \n* Look in public/javascripts/get_animal.js for an example of using fetch to perform a GET request against the API, then using JavaScript to update DOM elements based on the result.\n\n## To run\n\n* clone or download\n* cd express-demo\n* npm install\n* npm start\n    \n----------\n    \n**Important to note:** This is a minimal example, intended only to illustrate the use of fetch within a Pug template, and vanilla JavaScript methods for manipulating the DOM with the results. There are a bunch of other things that are beyond the scope of demonstrating fetch that would be necessary for a production quality application that I've elected not to include as they'd add a lot of extra bulk, without adding any clarity to the demo. Namely:\n\n* Unit testing\n* Production bundling\n* Dev reloading\n* etc, etc, etc\n\nI know the other stuff is important - but it would have added a lot of noise to sift through to get to the code this repo is actually meant to illustrate.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1xt%2Fexpress-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp1xt%2Fexpress-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1xt%2Fexpress-demo/lists"}