Y
Hacker News
new
|
ask
|
show
|
jobs
by
bitcrusher
2612 days ago
Yep! Just use Plug. There’s no need to drag the entire Phoenix stack in.
https://hexdocs.pm/plug/readme.html
1 comments
out_of_protocol
2612 days ago
Then you'll need to create own version of migrations, routing, configure asset building pipeline etc etc etc. Phoenix have everything in place, without need to re-implement lots and lots of basics
link
Xixi
2612 days ago
A bit pedantic, but migrations are provided by Ecto [1], not by Phoenix. You don't need Phoenix to use Ecto.
https://hexdocs.pm/ecto/Ecto.html
link
out_of_protocol
2611 days ago
Well, you'll still need to add Ecto, configure it to use separate configs for prod/dev/test environments etc - so point still stands :)
link