This Star Wars api consumer can be run via docker or natively.
- Vanilla Javascript, with Web Components.
- Tailwind 3 for basic styling utility classes.
A simple static asset server, written in crystal. Any static server will do.
Front end SWAPI caching is implemented by a simple url => response hash. As a result every SWAPI request should happen no more than once.
script/run
to build a container and start it.- visit http://0.0.0.0:3000
- ctrl-c to quit.
- asdf will install runtimes, but these plugins are needed:
- crystal:
asdf plugin-add crystal https://github.com/asdf-community/asdf-crystal.git
- nodejs:
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
- crystal:
- overmind or some other Procfile runner
asdf install
to get node and crystal-lang setupshards
to install crystal dependenciesovermind s
to boot and run everything- visit http://0.0.0.0:3000
- ctrl-c to quit.
Testing is powered by Jasmine, but run in the browser. Run the app with whatever method you choose, then visit the test runner.
The test suite is proof-of-conceptual-knowledge only, a full test suite would be much more verbose.