{"id":21585019,"url":"https://github.com/jcarloslucio/battleship","last_synced_at":"2026-03-06T08:33:54.373Z","repository":{"id":116137390,"uuid":"288531476","full_name":"JCarlosLucio/battleship","owner":"JCarlosLucio","description":"A Battleship game using Test Driven Development","archived":false,"fork":false,"pushed_at":"2023-06-15T20:05:22.000Z","size":379,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T03:32:46.350Z","etag":null,"topics":["battleship","scss","test-driven-development"],"latest_commit_sha":null,"homepage":"https://jcarloslucio.github.io/battleship/","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/JCarlosLucio.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":"2020-08-18T18:20:38.000Z","updated_at":"2024-08-20T18:25:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a43b45f-0472-487a-8364-56af8968cc86","html_url":"https://github.com/JCarlosLucio/battleship","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JCarlosLucio/battleship","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCarlosLucio%2Fbattleship","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCarlosLucio%2Fbattleship/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCarlosLucio%2Fbattleship/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCarlosLucio%2Fbattleship/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JCarlosLucio","download_url":"https://codeload.github.com/JCarlosLucio/battleship/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCarlosLucio%2Fbattleship/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30167963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"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":["battleship","scss","test-driven-development"],"created_at":"2024-11-24T15:08:44.464Z","updated_at":"2026-03-06T08:33:54.350Z","avatar_url":"https://github.com/JCarlosLucio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚢 BATTLESHIP \n![Version](https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000)\n[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/JCarlosLucio/battleship#readme)\n\n\u003e A Battleship game using Test Driven Development with Jest.  \n\u003e Developed for The Odin Project's\n\u003e [curriculum](https://www.theodinproject.com/lessons/node-path-javascript-battleship). \n\n## ✨ Demo\n[![Battleship Homepage](../media/battleship-desktop.webp?raw=true)](https://jcarloslucio.github.io/battleship)\n\n## 📜 Docs\n\n### Install\n\n```sh\nnpm install\n```\nInstalls dependencies.\n\n### Start\n\n```sh\nnpm run start\n```\nStarts the development server.\n\n### Test\n\n```sh\nnpm run test\n```\nRuns the tests. \n\n### Watch\n\n```sh\nnpm run watch\n```\nRuns the test runner in watch mode.\n\n### Build\n\n```sh\nnpm run build\n```\n\nBuilds the app for production to the `dist` directory.\n\n## 🚀 Manual Deployment\n\n[Deploy to GitHub Pages from `dist` directory](https://gist.github.com/cobyism/4730490).\n1. Remove `dist`directory from `.gitignore`.\n\n2. Create production bundle:\n\n```sh\nnpm run build\n\n```\n3. Make sure git knows about your subtree (the subfolder with your site).\n\n```sh\ngit add dist \u0026\u0026 git commit -m \"Initial dist subtree commit\"\n```\n\n4. Use subtree push to send it to the `gh-pages` branch on GitHub.\n\n```sh\ngit subtree push --prefix dist origin gh-pages\n```\n## 📖 Lessons Learned\n\n- How to setup testing.\n- Developing using [Test Driven Development](https://web.archive.org/web/20211123190134/http://godswillokwara.com/index.php/2016/09/09/the-importance-of-test-driven-development/) with [Jest](https://jestjs.io/).\n- Using Factory Functions and the Module Pattern.\n- Using [SASS (or SCSS)](https://sass-lang.com/) to style the application using the [SASS guidelines](https://sass-guidelin.es/).\n- Manual deployment to GitHub Pages.\n- Using [webpack](https://webpack.js.org/) for bundling and compiling.\n- Using [contentHash] in webpack bundles for cache busting.\n## Author\n\n👤 **Juan Carlos Lucio**\n\n* Github: [@JCarlosLucio](https://github.com/JCarlosLucio)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcarloslucio%2Fbattleship","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcarloslucio%2Fbattleship","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcarloslucio%2Fbattleship/lists"}