An open API service indexing awesome lists of open source software.

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

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`