| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Beacon is a content management system (CMS) built with Phoenix LiveView. It brings the rendering speed benefits of Phoenix to even the most content-heavy pages with faster render times to boost SEO performance.
Install both Phoenix and Igniter installers:
mix archive.install hex phx_new && mix archive.install hex igniter_newNow you can either create a new Phoenix project with Beacon or add Beacon to an existing Phoenix project:
Create a new projectmix igniter.new my_app --install beacon,beacon_live_admin --with phx.new --beacon.site my_sitemix igniter.new my_app \
--install beacon@github:BeaconCMS/beacon,beacon_live_admin@github:BeaconCMS/beacon_live_admin \
--with phx.new \
--beacon.site my_siteReplace my_app and my_site with the names you want to generate and follow the prompts.
Add to existing projectIf you already have a Phoenix project with Phoenix LiveView then you can just add Beacon into that project.
Similar to starting a new project, you can install Beacon and BeaconLiveAdmin and generate a new site:
mix igniter.install beacon,beacon_live_admin --beacon.site my_sitemix igniter.install \
beacon@github:BeaconCMS/beacon,beacon_live_admin@github:BeaconCMS/beacon_live_admin \
--beacon.site my_siteReplace my_site with the names you want to generate and follow the prompts.
To finish, install dependencies, run the server, and open http://localhost:4000 to see the default home page or http://localhost:4000/admin to manage your new site.
mix setup
mix phx.serverFor more info, check out the guides and recipes. If you're new to Beacon you can start with Your First Site guide.
A sample application running latest Beacon is available at https://github.com/BeaconCMS/beacon_demo
You can expect incomplete features and breaking changes before a stable v1.0 is released.
Main components:
Check out the CONTRIBUTING.md doc for overall guidelines to contribute to this project, then follow the Local Development steps to run a local project or watch the video below to understand more about Beacon internals:
The file dev.exs is a self-contained Phoenix application running Beacon with sample data and code reloading enabled. Follow these steps to get a site up and running:
mix setupiex --sname core@localhost -S mix devNote that running a named node isn't required unless you're running Beacon LiveAdmin for local development as well.
Finally, visit any of the routes defined in dev.exs, eg: http://localhost:4001/dev or http://localhost:4001/dev/sample
At DockYard we are ready to help you build your next Elixir project. We have a unique expertise in Elixir and Phoenix development that is unmatched and we love to write about Elixir.
Have a project in mind? Get in touch!
| Back | FazBrowse Home | New Git URL |