Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jgaskins/crystal_live_view_example
Proof of concept for a Crystal version of Phoenix Live View
https://github.com/jgaskins/crystal_live_view_example
server-side-rendering
Last synced: about 2 months ago
JSON representation
Proof of concept for a Crystal version of Phoenix Live View
- Host: GitHub
- URL: https://github.com/jgaskins/crystal_live_view_example
- Owner: jgaskins
- License: mit
- Created: 2019-04-10T02:14:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T04:16:15.000Z (over 5 years ago)
- Last Synced: 2024-11-02T13:42:11.510Z (2 months ago)
- Topics: server-side-rendering
- Language: Crystal
- Homepage: https://crystal-live-view-example.herokuapp.com
- Size: 731 KB
- Stars: 22
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crystal_live_view_example
Proof of concept for a Crystal version of [Phoenix Live View](https://dockyard.com/blog/2018/12/12/phoenix-liveview-interactive-real-time-apps-no-need-to-write-javascript)
## Installation
```bash
git clone https://github.com/jgaskins/crystal_live_view_example.git
```## Usage
```bash
crystal src/live_view_example.cr
```Then point your browser to http://localhost:8080/
You should see an increasing timestamp and
## Development
All of the plumbing is in [`src/live_view.cr`](https://github.com/jgaskins/crystal_live_view_example/tree/master/src/live_view.cr) and [`public/live-view.js`](https://github.com/jgaskins/crystal_live_view_example/tree/master/public/live-view.js).
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request## Contributors
- [Jamie Gaskins](https://github.com/jgaskins) - creator and maintainer