{"id":16841941,"url":"https://github.com/redtachyon/battlestax","last_synced_at":"2025-09-15T07:32:31.855Z","repository":{"id":54312803,"uuid":"341982523","full_name":"RedTachyon/battlestax","owner":"RedTachyon","description":"Repo for the JamStack webinar","archived":false,"fork":false,"pushed_at":"2021-02-24T19:43:36.000Z","size":29743,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T08:49:22.934Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedTachyon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-24T17:38:26.000Z","updated_at":"2021-02-24T19:43:38.000Z","dependencies_parsed_at":"2022-08-13T11:41:01.627Z","dependency_job_id":null,"html_url":"https://github.com/RedTachyon/battlestax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"DataStax-Examples/battlestax","purl":"pkg:github/RedTachyon/battlestax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTachyon%2Fbattlestax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTachyon%2Fbattlestax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTachyon%2Fbattlestax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTachyon%2Fbattlestax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTachyon","download_url":"https://codeload.github.com/RedTachyon/battlestax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTachyon%2Fbattlestax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275225270,"owners_count":25427000,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T12:43:35.085Z","updated_at":"2025-09-15T07:32:31.817Z","avatar_url":"https://github.com/RedTachyon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--- STARTEXCLUDE ---\u003e\n# BattleStax \n*50 minutes, Advanced, [Start Building](https://github.com/DataStax-Examples/battlestax#prerequisites)*\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)\n\nBattleStax is a stateful JAMStack game that is wholesome fun for the entire crew.\n\u003c!--- ENDEXCLUDE ---\u003e\n\n![image](https://raw.githubusercontent.com/DataStax-Examples/battlestax/master/tutorial/battlestax.png)\n\n\n## Objectives\n* Deploy a scalable JAMStack app to production\n* Leverage a good CI/CD process to manage your JAMStack App\n  \n## How this works\nThe BattleStax players watch a lobby screen while playing the game on their devices.\n\n\n![image](https://raw.githubusercontent.com/DataStax-Examples/battlestax/master/tutorial/architecture1.png)\n\n\n[JAMstack](https://jamstack.org/) is a big leap forward in how we can write web applications that are easy to write, deploy, scale, and also maintain. Using this approach means that newly created content is rendered from a content API, while a static render of it is being built into the site for future.\n\n## Get Started\nTo build and play with this app, follow the build instructions that are located here: [https://github.com/DataStax-Examples/battlestax](https://github.com/DataStax-Examples/battlestax#prerequisites)\n\n\u003c!--- STARTEXCLUDE ---\u003e\n# Running BattleStax\nFollow the instructions below to get started.\n\n## Prerequisites\nLet's do some initial setup.\n\n### DataStax Astra\n1. Create a [DataStax Astra account](https://astra.datastax.com/register?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=battlestax) if you don't \nalready have one:\n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/astra-register-basic-auth.png)\n\n2. On the home page. Locate the button **`Add Database`**\n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/astra-dashboard.png)\n\n3. Pick **free plan** and a **region** close to you, click configure.\n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/astra-create-db-1-top.png)\n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/astra-create-db-1-bottom.png)\n\n4. Define a **database name**, **keyspace name** and **credentials** (Take note of the DB Password)\n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/astra-create-db-2.png)\n\n5. Your Astra DB will be ready when the status will change from *`Pending`* to **`Active`** 💥💥💥 \n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/astra-db-active.png)\n\n6. After your database is provisioned, head to the `Connect` screen and copy your connection \ninformation (we'll need this later!):\n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/astra-connect.png)\n\n### Github\n1. Click `Use this template` at the top of the [GitHub Repository](https://github.com/DataStax-Examples/battlestax):\n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/github-use-template.png)\n\n2. Enter a repository name and click 'Create repository from template':\n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/github-create-repository.png)\n\n3. Clone the repository:\n![image](https://raw.githubusercontent.com/DataStax-Examples/sample-app-template/master/screenshots/github-clone.png)\n\n\n## Running the full game\n*Make sure you've completed the [prerequisites](#prerequisites) before starting this step*\n  - [Running on your local machine](#running-on-your-local-machine)\n\n### Running on your local machine\n\n1. Check out the `full-game` branch\n```sh\ngit fetch\ngit checkout full-game\n```\n\n2. Create a `.env` file and fill it with values from the `.env.example` file.\n\n3. Make sure the package dependencies are installed\n```sh\n# install dependencies\nnpm install\n```\n\n3. Then, start the app in dev mode. Changes in the `src` or `functions` directories will trigger reloads.\n```sh\n# start battlestax in dev mode\nnpm run dev\n```\n\u003c!--- ENDEXCLUDE ---\u003e\n\n## Tutorial Steps\nThe above instructions are great to get you up and running pretty quickly, but if you would like to learn how to fully deploy the application to production with JAMStack then click the button below to get started.\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"../../wiki\"\u003e\n \u003cimg src=\"https://dabuttonfactory.com/button.png?t=Open+the+workshop\u0026f=Roboto-Bold\u0026ts=26\u0026tc=fff\u0026hp=45\u0026vp=20\u0026c=11\u0026bgt=unicolored\u0026bgc=15d798\" /\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredtachyon%2Fbattlestax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredtachyon%2Fbattlestax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredtachyon%2Fbattlestax/lists"}