Well, It's Erels... [B4X] CloudKVS - synchronized key / value store...
with the b4j server using a MySQL back-end.
This is a moderate programmer project. Not really for a new-bee.
Thanks Erel!!!!!
https://www.b4x.com/android/forum/threads/b4x-cloudkvs-synchronized-key-value-store.63536/
Not a lot of testing has been done but for my small app it is working fine.
Remember this is the SERVER app. It is b4j.
OK, a little more work to setup (Well a lot more) but if you want MySQL power? here you go.
So... Step by step
0. Make sure you have mysql-connector-java-5.1.39-bin.jar in your Additional libs folder.
1. Create a database called KeyStore on your MySQL server.
2. Set users, permissions, you know the drill. Open firewall ports if needed if you are on a VPS
3. Time for the table , indexes --- create them in your KeyStore database.
4. Load the attached project. Do not forget to change your database setting in the DB module.
Make sure you have a good database connection going or else not much will matter.
This should be compatible with all of Erel's b4x clients he posted as the only thing changed was in the DB module.
Well, have fun. As always
(c)Every living being. If you are breathing... Use and hack!!!
Source to use, abuse, edit, add and delete as you see fit.
Please post bug fixes (don't tell me you have a bug.. Fix it! or if you need help then post here!!!) And any ideas...
I hope soon to add MQTT to do pushes to the clients so they do not have to keep querying for new data.
Have fun!!!!
with the b4j server using a MySQL back-end.
This is a moderate programmer project. Not really for a new-bee.
Thanks Erel!!!!!
https://www.b4x.com/android/forum/threads/b4x-cloudkvs-synchronized-key-value-store.63536/
Not a lot of testing has been done but for my small app it is working fine.
Remember this is the SERVER app. It is b4j.
OK, a little more work to setup (Well a lot more) but if you want MySQL power? here you go.
So... Step by step
0. Make sure you have mysql-connector-java-5.1.39-bin.jar in your Additional libs folder.
1. Create a database called KeyStore on your MySQL server.
2. Set users, permissions, you know the drill. Open firewall ports if needed if you are on a VPS
3. Time for the table , indexes --- create them in your KeyStore database.
B4X:
CREATE TABLE `data` (
`user` varchar(254) NOT NULL,
`key` varchar(254) NOT NULL,
`value` blob,
`id` int(11) DEFAULT NULL,
`the_time` bigint(20) DEFAULT NULL,
UNIQUE KEY `pri_index` (`user`,`key`),
KEY `id_index` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
4. Load the attached project. Do not forget to change your database setting in the DB module.
Make sure you have a good database connection going or else not much will matter.
This should be compatible with all of Erel's b4x clients he posted as the only thing changed was in the DB module.
Well, have fun. As always
(c)Every living being. If you are breathing... Use and hack!!!
Source to use, abuse, edit, add and delete as you see fit.
Please post bug fixes (don't tell me you have a bug.. Fix it! or if you need help then post here!!!) And any ideas...
I hope soon to add MQTT to do pushes to the clients so they do not have to keep querying for new data.
Have fun!!!!