Skip to content

Sample application running Beacon, a open-source content management system (CMS) built with Phoenix LiveView.

License

Notifications You must be signed in to change notification settings

BeaconCMS/beacon_demo

Repository files navigation

BeaconCMS Demo

Sample application to showcase beacon features. Follow the readme to get started:

Local

Run a database

Postgres is configured by default but you may change the adapter in lib/beacon_demo/repo.ex.

Adjust database connection

In config/dev.exs adjust the following repo config to fit your local environment:

config :beacon_demo, BeaconDemo.Repo, ...

Setup

Run setup to install dependencies and setup initial data:

mix setup

Run server

mix phx.server

Change seeds data (optional)

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.

Demo

Visit some sample pages:

Deploy to Fly.io

  1. Install flyctl
  2. Execute fly auth login to authenticate with your Fly.io account
  3. Execute fly launch to create and deploy a new application. Answer y when asked to copy existing configuration.

Exploring

Checkout the Beacon guides for more.