-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create a Phoenix app for API only #132
Comments
@SimonLab thanks for opening this issue! 🙌 |
I'm starting with Phoenix as it offers a lot of convenient features and because I've spend most of the time working with Phoenix itself than bare Elixir but I will try to research and implement an API server with only Elixir. |
@SimonLab I don't have much interest in building Elixir (Web) Apps without Phoenix. |
I've now been rewriting (multiple times) the documentation on how to create an API with Phoenix.
|
@SimonLab it's only worth adding Postgres for storing data that needs to be in Postgres. |
My idea with Postgres is to be able to add and edit some quotes to show specifically how to create post and put endpoints/controller and how to send the request with a client, for exemple with curl. |
@SimonLab sounds good. |
I'm looking at creating the most basic Phoenix application which can be used for creating an API.
I know that Webpack is not required as an API will only returns
json
so managing assets is not necessary.The html view and templates are also not required.
You can find the documentation on how to create a new project with
mix help phx.new
:So we need to pass the
--no-webpack
and--no-html
options when creating a new project.ref:
The text was updated successfully, but these errors were encountered: