https://github.com/erickgnavar/pokedex-api
Pokedex API
https://github.com/erickgnavar/pokedex-api
elixir heroku pokemon-api
Last synced: over 1 year ago
JSON representation
Pokedex API
- Host: GitHub
- URL: https://github.com/erickgnavar/pokedex-api
- Owner: erickgnavar
- License: mit
- Created: 2020-05-25T00:37:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T00:39:05.000Z (about 6 years ago)
- Last Synced: 2025-01-30T15:41:23.236Z (over 1 year ago)
- Topics: elixir, heroku, pokemon-api
- Language: Elixir
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pokedex
Pokedex api using data from https://pokemondb.net
## Deploy to heroku
Setup container based stack:
`heroku stack:set container`
Setup postgres addon:
`heroku addons:create heroku-postgresql:hobby-dev`
Setup required environment variables:
`heroku config:set POOL_SIZE=10`
Once deployment is done run migrations:
`heroku run "POOL_SIZE=2 /rel/pokedex/bin/pokedex eval Pokedex.Release.migrate"`
and fetch and insert data:
`heroku run "POOL_SIZE=2 /rel/pokedex/bin/pokedex eval Pokedex.Release.fill_data"`