{"id":38512307,"url":"https://github.com/marcus-k/home-page","last_synced_at":"2026-01-17T06:23:17.052Z","repository":{"id":64879180,"uuid":"443471801","full_name":"marcus-k/home-page","owner":"marcus-k","description":"Learning to create my first home page.","archived":false,"fork":false,"pushed_at":"2025-05-01T15:59:06.000Z","size":161,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-01T16:43:26.194Z","etag":null,"topics":["css","docker","docker-compose","expressjs","html","javascript","nodejs"],"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/marcus-k.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,"zenodo":null}},"created_at":"2022-01-01T04:39:02.000Z","updated_at":"2025-05-01T15:59:09.000Z","dependencies_parsed_at":"2025-05-01T16:34:45.607Z","dependency_job_id":"a510486e-6460-430c-a811-d6b65b1a0265","html_url":"https://github.com/marcus-k/home-page","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcus-k/home-page","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcus-k%2Fhome-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcus-k%2Fhome-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcus-k%2Fhome-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcus-k%2Fhome-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcus-k","download_url":"https://codeload.github.com/marcus-k/home-page/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcus-k%2Fhome-page/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["css","docker","docker-compose","expressjs","html","javascript","nodejs"],"created_at":"2026-01-17T06:23:16.970Z","updated_at":"2026-01-17T06:23:17.040Z","avatar_url":"https://github.com/marcus-k.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home Page\nVery first home page to teach myself the basics of how to use HTML, CSS, JavaScript, and Node.js. Before this, I had no knowledge of any web development. \n\n![](screenshots/screenshot.png)\n\n\nObvious heavy visual inspiration from [alanrey6](https://github.com/alanrey6/startpage-az). Many tweaks, comments, and changes were made just about everywhere to theirs other than the visuals. I basically wanted to improve his version and learn how to make it myself, while customizing it to my needs and adding a way to deploy it using Express.js through docker.  This repository will essentially be my notes on how it works and to run it.\n\n## Manual Setup\n\n[Node.js](https://nodejs.org/en/) is needed to run the HTTP server. I tested it with the [WSL2 version](https://docs.microsoft.com/en-ca/windows/dev-environment/javascript/nodejs-on-wsl).\n\nTo enable weather functionality, a `.env` file needs to be created in the root directory with an OpenWeatherMap API key along with a [location](https://www.latlong.net/). One can paste the necessary values into the `.env.sample` file then remove `.sample` from the filename.\n\nWeb links, located in `/public/js/config.js`, can be customized to whatever one desires. See [below](#web-link-config) for config details.\n\nInstall the packages in the environment with:\n```bash\n$ npm install\n```\n\nTo start the web server:\n```bash\n$ node app.js\n```\n\n## Docker Setup\n\nThe `.env` file and web links should be setup in the same manner as the [manual setup](#manual-setup). Then, the docker image can be built using:\n```bash\n$ docker build . -t marcus/homepage\n```\n\nTo run the container:\n```bash\n$ docker run -p 8080:8080 -d --name homepage marcus/homepage\n```\n\n## Docker-Compose Setup\n\nAn example docker-compose file is also provided to use instead of the docker CLI. To build and run:\n```bash\n$ docker-compose build\n$ docker-compose up -d\n```\n\n## Web Link Config\n\nEach entry in `/public/js/config.js` has two attributes: the column name and a list of web links.\n```\n{\n    name: \"Admin\",\n    links: [\n        {\n            href: \"\",\n            target: \"_blank\",\n            content: \"Portainer\",\n            icon: \"https://i.imgur.com/729Hh3P.png\"\n        },\n        {\n            href: \"\",\n            target: \"_blank\",\n            content: \"Pi-hole\",\n            icon: \"https://pi-hole.github.io/graphics/Vortex/Vortex_with_Wordmark.svg\"\n        },\n    ]\n}\n```\n- `href` is the web address to link to.\n- `target` specifies where to open the link.\n- `content` is the displayed text.\n- `icon` is the local or remote icon image location.\n\n\n\n## Other Links to Read\n- [https://stpg.tk/guides/basic-startpage/](https://stpg.tk/guides/basic-startpage/)\n- [https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics](https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics)\n- [https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/CSS_basics](https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/CSS_basics)\n- [https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics](https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics)\n- [https://gist.github.com/jkrems/b14894e0b8efde10aa10a28c652d3541](https://gist.github.com/jkrems/b14894e0b8efde10aa10a28c652d3541)\n- [https://nodejs.org/en/docs/guides/nodejs-docker-webapp/](https://nodejs.org/en/docs/guides/nodejs-docker-webapp/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcus-k%2Fhome-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcus-k%2Fhome-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcus-k%2Fhome-page/lists"}