Elixir Phoneix Grapgql example app
Dev env setup
Install elixir
Install elixir via asdf
Installation via asdf
https://asdf-vm.com/guide/getting-started.html#_2-download-asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.0
Add the following to ~/.bashrc:
. $HOME/.asdf/asdf.sh
install plugins
-
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
-
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
Install dependencies and run setup
Install elixir dependencies mix deps.get mix deps.compile
Setup database mix ecto.setup
Bootstra user on a new server mix run priv/repo/seeds.exs # is also running automatically with mix ecto.setup
Run server mix phx.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix
add follwong build packs
https://github.com/HashNuke/heroku-buildpack-elixir.git https://github.com/gjaldon/heroku-buildpack-phoenix-static.git https://github.com/heymackey/heroku-phoenix-umbrella-static-buildpack