Realm Crowd Circle
A small demo app designed to demonstrate simple instantaneous collaboration of up to 6 groups in an artistic style game.
One device runs as a "host", which will display circles representing 6 separate clients. Other devices can then connect as clients. When a client taps on the circle button on their screen, the equivalent circle on the host will increment. Over time, the values on the host will decrease until they reach 0 again.
- Works with 1 host iPad and up to 6 iPhone / iPad units.
- Locally hosted; one iPad acts like the host.
- Springy animations to elicit a playful response with users.
- iOS 9.0 and above
- Xcode 8.33 and higher
- Realm Platform / Realm Object Server 2.x
- Realm Studio
This application demonstrates features of the Realm Platform and needs to have a working instance of the Realm Object Server version 2.x to make data available between instances of the CrowdCircle app. The Realm Object Server can be installed via npm as a node application for macOS or Linux. Please see the installation instructions. If you already got Node.js installed, it's a one-liner.
Another useful tool is Realm Studio which is available for macOS, Linux and Windows and allows developers to inspect and manage Realms and the Realm Object Server. Realm Studio is recommended for all developers and can be downloaded from the Realm web site.
CocoaPods is required in order to install all of the third party dependencies (such as Realm itself) into Realm Crowd Circle.
- If you haven't already, install CocoaPods.
- Open Terminal, and navigate to the root Realm Puzzle directory, e.g.
pod installto install the necessary dependencies needed by Realm Crowd Circle.
- Start Realm Object Server on a local Mac.
Realm Studio, connect to the local Realm Object Server -- the default username and password (
realm-adminand an empty password) are provided which will work for a fresh installation of the object server. Then, in the
Userspane, create a user named 'firstname.lastname@example.org' using the password 'password'.
- Build the apps and deploy to all devices.
The app will try to insert the correct local IP address at build time, but if that isn't appropriate, it's possible to manually set the host name upon launch as well.
Third Party Dependencies
The following modules will be installed as part of the CocoaPods installation:
Realm Swift - The Objective-C version of the Realm Mobile Database.
Eureka - A framework for easily setting up input forms in iOS.
SwiftSpinner - A fullscreen loading spinner UI.
See CONTRIBUTING.md for more details!