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, ...
config :beacon, Beacon.Repo, ...
Beacon depends on C libraries. If deps compilation fails, make sure your environment has the compilers installed. On Ubuntu look for the build_essential
package, on macOS install utilities with xcode-select --install
.
Layouts and pages are defined in priv/repo/beacon_seeds.exs
. Feel free to change it but remember to reset the database: mix ecto.reset
Run:
mix setup
mix phx.server
Visit some sample pages:
- http://localhost:4000/demo/home to see a page with events.
- http://localhost:4000/blog/posts/2023-01-sample for a demo of dynamic paths.
- http://localhost:4000/admin to manage sites.
Checkout the Beacon guides for more.