This is the final codebase for our Pusher tutorial.
Pusher does Websocket infrastructure so you don't need to. Check us out.
If you don't want to follow the tutorial, and just want to get a local copy up and running, follow these steps.
You will need PHP, Composer and Node.js. For MacOS I recommend installing them with Homebrew. For Windows see instructions for PHP, Composer and Node.
- Get your free Pusher API Keys at https://pusher.com
- Clone this repo
- Install Composer packages
composer install
- Install NPM packages
npm install
- Create a sqlite database file in the database folder
touch db.sqlite
- Enter your API keys in
.env
PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_APP_CLUSTER=
- Enter the path to your database file
DB_DATABASE=<Full path to the sqlite file>
- Initilise the database
php artisan migrate
- Compile the webpages and run it
npm run dev php artisan serve
Go to http://127.0.0.1:8000/, register a couple of users and start chatting!
- Want so ask a Pusher a question? Contact support here.
- If you want to raise an issue with our PHP SDK, do it here.
Owned by Pusher.
PusherSwift is released under the MIT license. See LICENSE for details.