Skip to content
My submission to dev.to contest building a real-time web application with Pusher
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
app
bootstrap
config
database
public
resources
routes
storage
tests
.env.example
.gitattributes
LICENSE
README.md
_config.yml
artisan
composer.json
package-lock.json
package.json
phpunit.xml
server.php
webpack.mix.js
yarn.lock

README.md

TANGO

Tango is a twitter like app built with vue.js, graph.QL and Pusher implemented on laravel. I built this as a submission to the DEV.to contest

How to install

You have to clone the repo and install using composer - composer install after installation create a .env file by running cp .env.example .env then add your database details in it.

APP_NAME=TANGO
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=tango
DB_USERNAME=homestead
DB_PASSWORD=secret

BROADCAST_DRIVER=pusher
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

Login to your pusher account create an app and fill in the following part of the .env file with your details

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_CLUSTER=eu

Now generate a key for your application running php artisan key:generate Then run the php artisan db:seed to seed the app with dummy datas To point the baseURL of axios http to your app url you have to edit resources/assets/js/utils/http.js file. By default it set to http://locahost:8000 Finally run php artisan serve to serve on http://locahost:8000.

Check out the DEMO

Enjoy :)

Like what I do?

Buy Me a Coffee at ko-fi.com

You can’t perform that action at this time.