This is a sample app I built as a companion to this blog post
- If you don't have crystal set up follow the instructions from the crystal wiki
- Create an account in https://developer.marvel.com/docs and get your own keys
shards installcp .env.example .envand place your keys in the .env file
Run shards build to build the binary then run it with from bin/marvel_api_example.
The program takes a bit to finish because the api requests are really long, the requests then get cached into the cache folder.
If you get an invalid request because the keys are wrong or something like that, you need to clear the cache folder before running again.
- Fork it ( https://github.com/laginha87/marvel_api_example/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- laginha87 - creator, maintainer