mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
1.4 KiB
1.4 KiB
title, description, tags
| title | description | tags | |||
|---|---|---|---|---|---|
| Elixir Phoenix | A Phoenix application that connects to a PostgreSQL database |
|
Elixir Phoenix Example
This example is a Phoenix application that connects to a Railway Postgres database.
](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.