A chat app connecting to a Chime.IO server.
Make sure you have a running chimeio-server.
Get your apiKey
, and clientKey
:
Make a POST
request to your_server:port/developers
with required parameters:
email: develoepr_email
username: developer_username
password: developer_password
Then you will get your developer token
Make a POST
request to your_server:port/applications
with required parameters:
title: application_name
token: developer_token
Then you will get your apiKey
and clientKey
Getting up and running.
-
Make sure you have Carthage installed and setup on your machine.
-
Build depedencies:
$ carthage update --platform iOS
-
Replace the following constant in
ChIO.swift
:let xipURL = NSURL(string: "your_server.xip.io:port")! let localURL = NSURL(string: "your_server:port")! let instance = ChIO(apiKey: "your_apiKey", clientKey: "your_clientKey", url: localURL)
-
Now build and run your Xcode project.