https://github.com/keyan/tonic-time
Demonstration of dynamic pages with Phoenix Channels
https://github.com/keyan/tonic-time
Last synced: about 1 year ago
JSON representation
Demonstration of dynamic pages with Phoenix Channels
- Host: GitHub
- URL: https://github.com/keyan/tonic-time
- Owner: keyan
- License: mit
- Created: 2017-03-19T18:24:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T23:13:30.000Z (over 7 years ago)
- Last Synced: 2025-03-19T03:06:10.411Z (over 1 year ago)
- Language: Elixir
- Size: 51.8 KB
- Stars: 12
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TonicTime
An tiny example application demonstrating refreshing page content with Phoenix Channels and server-side template rendering.
## Overview
For a thorough explanation of this project see my blog post:
[A Refreshing Tonic, Realtime Updates with Phoenix Channels](http://keyanp.com/a-refreshing-tonic-realtime-updates-with-phoenix-channels.html).
The demo is also running live at: http://demo.keyanp.com/time, but is less interesting than reading the blog post :)
## How to run
To run locally:
* Install dependencies with `mix deps.get`
* Install Node.js dependencies with `npm install`
* Start Phoenix endpoint with `mix phoenix.server`
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.