Get Started
For start working with Rotor, you must connect your server (API) and clients (only Android yet) with Redis.
Install Redis before follow this guide.
Prepare Rotor Server
Let’s prepare a Rotor server over your API.
Install the package:
And start the server:
start()
method will launch Redis server (if it’s dead), Rotor server and Turbine (database manager). For more information about Turbine, check out this link.
databases
param defines a list of database names for loading it. If any database doesn’t exist, it will be created.
Prepare Rotor Client
Implement Rotor Core on build.gradle file.
transitive
flag is needed for implementing Rotor Core dependencies
Add Rotor service in AndroidManifest.xml
:
Initialize Rotor Core in your launcher activity. Once the library connects with Redis server, application workflow can continue.
Now your app is ready to implement real-time databases and notifications.