{"id":17680593,"url":"https://github.com/robacarp/swapi-spa","last_synced_at":"2025-03-30T19:12:16.006Z","repository":{"id":66257217,"uuid":"564946772","full_name":"robacarp/swapi-spa","owner":"robacarp","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-13T02:54:47.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T23:32:46.318Z","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/robacarp.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":"2022-11-11T22:12:57.000Z","updated_at":"2022-11-11T22:13:16.000Z","dependencies_parsed_at":"2023-02-24T10:00:19.201Z","dependency_job_id":null,"html_url":"https://github.com/robacarp/swapi-spa","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/robacarp%2Fswapi-spa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robacarp%2Fswapi-spa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robacarp%2Fswapi-spa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robacarp%2Fswapi-spa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robacarp","download_url":"https://codeload.github.com/robacarp/swapi-spa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365645,"owners_count":20765546,"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-24T09:08:25.304Z","updated_at":"2025-03-30T19:12:15.978Z","avatar_url":"https://github.com/robacarp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Intro\n\nThis Star Wars api consumer can be run via docker or natively.\n\n## Technical Summary\n\n### Front end:\n - Vanilla Javascript, with Web Components.\n - Tailwind 3 for basic styling utility classes.\n\n### Back end:\n\nA simple static asset server, written in crystal. Any static server will do.\n\n### API caching:\n\nFront end SWAPI caching [is implemented](https://github.com/robacarp/swapi-spa/blob/master/public/javascript/swapi.js#L37) by a simple url =\u003e response hash. As a result every SWAPI request should happen no more than once.\n\n## Run it\n\n### Running a demo (docker)\n\n- `script/run` to build a container and start it.\n- visit [http://0.0.0.0:3000](http://0.0.0.0:3000)\n- ctrl-c to quit.\n\n### Prerequisites (on-system run)\n\n- [asdf](https://asdf-vm.com/) will install runtimes, but these plugins are needed:\n  - crystal: `asdf plugin-add crystal https://github.com/asdf-community/asdf-crystal.git`\n  - nodejs: `asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git`\n- [overmind](https://github.com/DarthSim/overmind) or some other Procfile runner\n\n### Running a demo (on-system)\n\n- `asdf install` to get node and crystal-lang setup\n- `shards` to install crystal dependencies\n- `overmind s` to boot and run everything\n- visit [http://0.0.0.0:3000](http://0.0.0.0:3000)\n- ctrl-c to quit.\n\n## Testing\n\nTesting is powered by Jasmine, but run in the browser. Run the app with whatever method you choose, then [visit the test runner](http://0.0.0.0:3000/test.html).\n\nThe test suite is proof-of-conceptual-knowledge only, a full test suite would be much more verbose.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobacarp%2Fswapi-spa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobacarp%2Fswapi-spa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobacarp%2Fswapi-spa/lists"}