Files
ImgBotApp aaf6dbdd36 [ImgBot] Optimize images
*Total -- 1,259.67kb -> 929.61kb (26.2%)

/examples/rust-wasm/packages/www/public/apple-touch-icon.png -- 36.18kb -> 20.16kb (44.29%)
/examples/tailscale-vpn/images/get-started.png -- 229.46kb -> 139.98kb (39%)
/examples/tailscale-vpn/images/settings-page.png -- 233.89kb -> 145.85kb (37.64%)
/examples/tailscale-vpn/images/generate-auth-key.png -- 115.89kb -> 77.40kb (33.21%)
/examples/tailscale-vpn/images/copy-auth-key.png -- 85.42kb -> 59.06kb (30.86%)
/examples/tailscale-vpn/images/use-as-exit-node.png -- 79.96kb -> 55.79kb (30.22%)
/examples/tailscale-vpn/images/click-triple-dots.png -- 50.22kb -> 36.82kb (26.69%)
/examples/elixir-phoenix/priv/static/images/phoenix.png -- 13.57kb -> 11.28kb (16.91%)
/icons/django.svg -- 3.19kb -> 2.76kb (13.37%)
/examples/blitzjs/public/logo.png -- 32.68kb -> 28.56kb (12.62%)
/icons/nextjs.svg -- 3.38kb -> 3.00kb (11.23%)
/icons/blitzjs.png -- 306.61kb -> 280.88kb (8.39%)
/icons/r.svg -- 1.96kb -> 1.86kb (5.43%)
/icons/rust.svg -- 7.53kb -> 7.28kb (3.36%)
/icons/discord.svg -- 2.78kb -> 2.70kb (2.85%)
/icons/rails.svg -- 1.66kb -> 1.61kb (2.71%)
/examples/rust-wasm/packages/www/public/android-chrome-192x192.png -- 6.65kb -> 6.54kb (1.75%)
/examples/rust-wasm/packages/www/public/android-chrome-512x512.png -- 21.32kb -> 20.99kb (1.52%)
/icons/elixir.svg -- 6.32kb -> 6.22kb (1.48%)
/icons/phoenix.svg -- 6.34kb -> 6.26kb (1.32%)
/examples/nextjs-prisma/public/vercel.svg -- 1.08kb -> 1.06kb (1%)
/examples/next-prisma-trpc/public/vercel.svg -- 1.08kb -> 1.06kb (1%)
/icons/prisma.svg -- 1.21kb -> 1.21kb (0.4%)
/icons/typescript.svg -- 2.15kb -> 2.14kb (0.23%)
/icons/flask.svg -- 9.14kb -> 9.14kb (0.02%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2023-10-09 15:27:12 +00:00
..
2023-10-09 15:27:12 +00:00
2021-02-01 23:52:53 +00:00

title, description, tags
title description tags
Elixir Phoenix A Phoenix application that connects to a PostgreSQL database
elixir
phoenix
postgresql

Elixir Phoenix Example

This example is a Phoenix application that connects to a Railway Postgres database.

Deploy on Railway](https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2Frailwayapp%2Fexamples%2Ftree%2Fmaster%2Fexamples%2Felixir-phoenix&plugins=postgresql&envs=SECRET_KEY_BASE%2CPOOL_SIZE%2CDATABASE_URL&DATABASE_URLDesc=Connection+string+for+DB&POOL_SIZEDefault=2&DATABASE_URLDefault=postgres%3A%2F%2F%24%7B%7B+PGUSER+%7D%7D%3A%24%7B%7B+PGPASSWORD+%7D%7D%40%24%7B%7B+PGHOST+%7D%7D%3A%24%7B%7B+PGPORT+%7D%7D%2F%24%7B%7B+PGDATABASE+%7D%7D)

Features

  • Elixir
  • Phoenix
  • Postgres

💁‍♀️ How to use

  • Create a Railway project with the Postgres plugin
  • Connect to your Railway project with railway link
  • Install dependencies with railway run mix deps.get
  • Migrate the database railway run mix ecto.migrate
  • Install node dependencies with cd assets && npm install
  • Run the Phoenix app railway run mix phx.server

📝 Notes

This example was generated by running mix phx.new.

Read more about Phoenix at their official documentation.