marvel_api_example
Version, currently master branch1 version
- master branchlatestJun 21, 2018
github.com/laginha87/marvel_api_example
No description declared in shard.yml.
Installation
# Add this to your shard.yml
dependencies:
marvel_api_example:
github: laginha87/marvel_api_example
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.24.1- License
- MIT
- Author
- unnamed author
- Target
marvel_api_examplefrom src/marvel.cr
Dependencies
Runtime Dependencies
- dotenv*github: gdotdesign/cr-dotenv
README
marvel_api_example
This is a sample app I built as a companion to this blog post
Installation
- 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
Usage
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.
Contributing
- 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
Contributors
- laginha87 - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 21, 2018
- Crystal
0.24.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/laginha87/marvel_api_example
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1