Sample application to showcase beacon features. Follow the readme to get started:
Postgres is configured by default but you may change the adapter in lib/beacon_demo/repo.ex
.
In config/dev.exs
adjust the following repo config to fit your local environment:
config :beacon_demo, BeaconDemo.Repo, ...
Run setup to install dependencies and setup initial data:
mix setup
mix phx.server
Layouts and pages are defined in priv/repo/seeds/beacon.exs
. That data will be seeded on mix setup
and you can manage it using the admin interface,
but feel free to edit as you wish and run mix ecto.reset
to drop the database and recreate all data.
Visit some sample pages:
- http://localhost:4000 to see an example of a landing page.
- http://localhost:4000/blog to visit the blog index.
- http://localhost:4000/admin to manage your demo site.
- Install flyctl
- Execute
fly auth login
to authenticate with your Fly.io account - Execute
fly launch
to create and deploy a new application. Answery
when asked to copy existing configuration.
Checkout the Beacon guides for more.