https://github.com/james2doyle/long-polling-example
A demo of how to go about setting up a simple ajax-polling page/feature
https://github.com/james2doyle/long-polling-example
Last synced: about 1 month ago
JSON representation
A demo of how to go about setting up a simple ajax-polling page/feature
- Host: GitHub
- URL: https://github.com/james2doyle/long-polling-example
- Owner: james2doyle
- License: mit
- Created: 2016-02-13T22:45:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-15T04:47:42.000Z (over 10 years ago)
- Last Synced: 2025-03-03T20:01:59.695Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## Long Polling Example App
> a demo of how to go about setting up a simple ajax-polling page/feature
[YouTube Demo](https://youtu.be/tp4VOgej1Ho)
#### Uses:
* [Lumen 5.2](https://lumen.laravel.com/)
* [Vue.js](http://vuejs.org/) 1.0.16
* [window.fetch](https://developers.google.com/web/updates/2015/03/introduction-to-fetch?hl=en) API
## Setup and Installation
Lumen needs to have a virtual host setup so get started. I use [Laravel Homestead](https://laravel.com/docs/5.2/homestead) as a virual machine.
If you have all that, then continue:
* clone the repo and change to the directory
* move the `env` to `.env`
* update `.env` with the setting appropriate to your app/database
* `php artisan migrate`
* `php artisan db:seed`
* visit the url for your virtual host and go to `/frontend.html`