/feenix

Exercise inspired by great talk from Jay Hayes in Oscon Conf

Primary LanguageElixir

BuildFeenix

Make exercise inspired by great talk from Jay Hayes in Oscon Conf about making simple Phoenix framework. I am not implementing here everything from talk (eg. controllers can't plug properly some others methods which are assign something to connection). I was adding extra handling POST methods and make sure the post params (not only query params) are parsed in conn.

This repo is containing pull-requests which are represent progression of evolving logic from the most simple handling request till have own separated application which is using this simple modules for build simple api server.

NOTES

  • mix new build_feenix --sup
def deps do
  [
    {:plug, "~> 1.6"},
    {:cowboy, "~> 2.4"},
    {:poison, "~> 4.0"}
  ]
end
  • now run YourApp.Endpoint from Application module YourApp (in your_app.ex). Set this module as aplication which should be run in mix.exs.

Router

Sources

https://devhints.io/phoenix-conn