3 ms·
You can have Phoenix serve API endpoints and not include the phoenix html template package in your mix files. > I’d prefer a simple React, Postgres, Elixir sta
by anthony_doan 7y ago
You can have Phoenix serve API endpoints and not include the phoenix html template package in your mix files.
> I’d prefer a simple React, Postgres, Elixir stack (REP).
That's not even a web stack. Web stack for example LAMP include a web server (Apache) or something that is able to response to client request. Elixir is a language it can't serve anything. You need cowboy or something and then build around it. Or you can just use Phoenix.
- schneidmaster 7y ago> You can have Phoenix serve API endpoints and not include the phoenix html template package in your mix files. Incidentally, that's what I did for the project in the blog post. If you bootstrap with `mix phx.new --no-html --no-webpack` then you get a leaner version of Phoenix that's good for an API, without the HTML and frontend asset parts.
- anthony_doan 7y agoOh wow I didn't even know there's a command for it. Thanks.