Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drumusician/gen_template_phx_live_view
Phoenix Live View Template
https://github.com/drumusician/gen_template_phx_live_view
Last synced: 2 days ago
JSON representation
Phoenix Live View Template
- Host: GitHub
- URL: https://github.com/drumusician/gen_template_phx_live_view
- Owner: drumusician
- License: mit
- Created: 2019-03-30T21:37:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-30T21:53:13.000Z (almost 6 years ago)
- Last Synced: 2024-12-09T03:52:14.895Z (about 2 months ago)
- Language: Elixir
- Size: 113 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PhxLiveView
> A Phoenix Live View Kickstarter. Basically a fresh Phoenix project without ecto and with live view fully setup.
## Prerequisites
You'll need to install the `mix_templates` and `mix_generator` packages by Dave Thomas
```
mix archive.install hex mix_templates
mix archive.install hex mix_generator
```## Install
Install this template:
```
mix template.install hex gen_template_phx_live_view
```## Usage
Then create your project:
```
mix gen phx_live_view MyAwesomeLiveViewProject
```After this cd into the project directory and:
```
mix deps.get
cd assets && yarn
```## Fire it up
```
mix phx.server
```There is an example clock on the homepage that is implemented in `lib/your_project_web/live/clock.ex`