Creating a Calendar Backend

I managed to create a calendar widget with some code I found somewhere on the internet. I want a calendar app that I can add events to, like a calendar somewhere online that syncs up with the calendar widget in my app, that way when I add an event to the online calendar, it shows up on the calendar in my app. And also, if necessary, can add events from the calendar in my app the calendar of the user’s phone.

Is this possible? The first idea I had was a google sheet doc, I thought I could turn it into a json and use the entries to populate the dates in the calendar of my app but that didn’t seem very efficient.

I’ve tried researching the google calendar api but I’m having trouble figuring things out, I’d appreciate some help with this please. Thank you!

Hi @sharongirl21,

I assume the Google calendar API uses REST-based network calls to get/set information? If so, it shouldn’t be too difficult to tie into Corona… I recently implemented a full suite of Vimeo video APIs into a Corona app using REST-based calls and it works wonderfully.

This tutorial may help you get started:

https://docs.coronalabs.com/tutorial/social/connectREST/index.html

Take care,

Brent

I know I could somehow set up the google calendar with corona, my problem is I don’t know if it does what I want. When I searched it up I think what I saw was accessing google calendars of users or something. I’m trying to create my own sort of “calendar server” that sends data to my corona app and fills it with events, events that I’ve inputted into said “calendar server”, “calendar server” being like some online calendar that all my apps connect to and sync with. Sorry, I don’t know if I explained that well

Hmmm, in that case you may want to explore a cloud-based service where you could store your data and then sync it across devices. The following plugins come to mind:

Firebase Database: https://marketplace.coronalabs.com/plugin/firebase-database

Coronium SkyTable: https://marketplace.coronalabs.com/plugin/coronium-skytable

S3 Lite: https://marketplace.coronalabs.com/plugin/s3-lite

Brent

sharongirl21

if you want your own server, you just need to create a MySQL database on the server (using PHPMyAdmin for example), create Web services using the language you know on the server side (PHP or any other) then on corona app you need to network.request the Web service created on the server.

I do this way in almost all my works. if you’re not comfortable with server side programming, a cloud solution like Brent suggest is the way to go. at least you will not be worried about securing the connection.

I use Appp42 cloud service to send json data to my app, I suppose I could try to use the same thing for the calendar, granted, I wanted something efficient for a calendar. Anyway, thank you!

Hi,

To create a custom calendar solution, you would need to use a database of some type. Both MySQL and Mongo are good for this. You would basically be creating records with a date and whatever other meta you needed. While it’s only my opinion, Coronium Core is built with this type of use case in mind, and makes it very simple to create a system like this that works in tandem with Corona.

If you’re interested in using Coronium Core, I would be happy to talk though some framework ideas for a calendar system.

-dev

Hi @sharongirl21,

I assume the Google calendar API uses REST-based network calls to get/set information? If so, it shouldn’t be too difficult to tie into Corona… I recently implemented a full suite of Vimeo video APIs into a Corona app using REST-based calls and it works wonderfully.

This tutorial may help you get started:

https://docs.coronalabs.com/tutorial/social/connectREST/index.html

Take care,

Brent

I know I could somehow set up the google calendar with corona, my problem is I don’t know if it does what I want. When I searched it up I think what I saw was accessing google calendars of users or something. I’m trying to create my own sort of “calendar server” that sends data to my corona app and fills it with events, events that I’ve inputted into said “calendar server”, “calendar server” being like some online calendar that all my apps connect to and sync with. Sorry, I don’t know if I explained that well

Hmmm, in that case you may want to explore a cloud-based service where you could store your data and then sync it across devices. The following plugins come to mind:

Firebase Database: https://marketplace.coronalabs.com/plugin/firebase-database

Coronium SkyTable: https://marketplace.coronalabs.com/plugin/coronium-skytable

S3 Lite: https://marketplace.coronalabs.com/plugin/s3-lite

Brent

sharongirl21

if you want your own server, you just need to create a MySQL database on the server (using PHPMyAdmin for example), create Web services using the language you know on the server side (PHP or any other) then on corona app you need to network.request the Web service created on the server.

I do this way in almost all my works. if you’re not comfortable with server side programming, a cloud solution like Brent suggest is the way to go. at least you will not be worried about securing the connection.

I use Appp42 cloud service to send json data to my app, I suppose I could try to use the same thing for the calendar, granted, I wanted something efficient for a calendar. Anyway, thank you!

Hi,

To create a custom calendar solution, you would need to use a database of some type. Both MySQL and Mongo are good for this. You would basically be creating records with a date and whatever other meta you needed. While it’s only my opinion, Coronium Core is built with this type of use case in mind, and makes it very simple to create a system like this that works in tandem with Corona.

If you’re interested in using Coronium Core, I would be happy to talk though some framework ideas for a calendar system.

-dev