# Create web application without html

**URL:** <https://forum.elixirforum.com/t/create-web-application-without-html/24479>\
**Category:** Questions\
**Tags:** phoenix, troubleshooting\
**Created:** [August 6, 2019, 11:42am UTC](https://forum.elixirforum.com/t/create-web-application-without-html/24479 "2019-08-06T11:42:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kodepett](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kodepett/32/13484_2.png) [@kodepett](https://forum.elixirforum.com/u/kodepett)\
**Post date:** [August 6, 2019, 11:42am UTC](https://forum.elixirforum.com/t/create-web-application-without-html/24479/1 "2019-08-06T11:42:52Z")

</div>

What’s the best way to create a phoenix application that will be accessed by the client which is not a web browser; the access will be in the form of a get request with various parameters. It doesn’t need the browser pipeline and response will be sent with text() function.

---

<div class="post-metadata">

**Author:** ![lucaong](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/lucaong/32/21794_2.png) [@lucaong](https://forum.elixirforum.com/u/lucaong)\
**Post date:** [August 6, 2019, 12:00pm UTC](https://forum.elixirforum.com/t/create-web-application-without-html/24479/2 "2019-08-06T12:00:44Z")

</div>

Just do not pipe through the `browser` pipeline in the `router.ex`, and render text or JSON as needed in your controllers/views. You do not need to do anything special upon app creation, Phoenix gives you all the convenience options to render HTML for web browsers, but in no way restricts you to it.

---

<div class="post-metadata">

**Author:** ![sribe](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@sribe](https://forum.elixirforum.com/u/sribe)\
**Post date:** [August 6, 2019, 12:49pm UTC](https://forum.elixirforum.com/t/create-web-application-without-html/24479/3 "2019-08-06T12:49:42Z")

</div>

You don’t _have_ to do anything special at creation, but `--no-html` & `--no-webpack` would give you a project without the distraction of some pieces which you will never use.

---

<div class="post-metadata">

**Author:** ![kodepett](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kodepett/32/13484_2.png) [@kodepett](https://forum.elixirforum.com/u/kodepett)\
**Post date:** [August 6, 2019, 1:19pm UTC](https://forum.elixirforum.com/t/create-web-application-without-html/24479/4 "2019-08-06T13:19:31Z")

</div>

I tried that option and had to manually add the scope. It’s working fine now. My next major challenge has to do with deploying the application plus logging. Can you suggest any resource, especially on how to use stuff like prod.secret.ex etc. I’ve gone through a few books but most are silent on deployment and logging.

---

<div class="post-metadata">

**Author:** ![kodepett](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kodepett/32/13484_2.png) [@kodepett](https://forum.elixirforum.com/u/kodepett)\
**Post date:** [August 7, 2019, 9:05am UTC](https://forum.elixirforum.com/t/create-web-application-without-html/24479/5 "2019-08-07T09:05:14Z")

</div>

Any deployment resource with logging. Thanks a lot for your swift response yesterday.

---

<div class="post-metadata">

**Author:** ![lucaong](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/lucaong/32/21794_2.png) [@lucaong](https://forum.elixirforum.com/u/lucaong)\
**Post date:** [August 7, 2019, 9:27am UTC](https://forum.elixirforum.com/t/create-web-application-without-html/24479/6 "2019-08-07T09:27:37Z")

</div>

I did not try it myself, but I heard good things about [Gigalixir](https://www.gigalixir.com) as a IaaS solution to deploy Elixir applications. I think other people in the forum can definitely share more experience with that.

Regarding secrets management, the best practice, not just in Elixir but in general, would be to avoid including any clear-text secret in your codebase under version control. My personal preferred option is to inject all of them as environment variables, so I can also easily use different values per environment (staging, production, etc.).
