virajvchavan / calendar_app Goto Github PK
View Code? Open in Web Editor NEWEasily access your Google Calendar events for today, classified by calendar names.
Home Page: https://calendars-vc.herokuapp.com/
Easily access your Google Calendar events for today, classified by calendar names.
Home Page: https://calendars-vc.herokuapp.com/
Possible use case:
When user logs in for the first time, currently all of his calendars with all the events are loaded all at once, and then only user is redirected to auth/:provider/callback
.
If user has thousands of events, it may take a long time to load the events, and even lead to a timeout before redirecting to our website. It'll be better to start a background job and then return a success response immediately. Then just find a way to show the newly loaded events as they come. (websockets?)
Current test cases cover only validations, associations and some other standard things.
Need test cases for the following and more:
A user may have hundreds of events under one calendar
Currently there is no abstraction over Google Calendar API's registered webhooks (Notification channels).
We are relying on custom tokens sent on each webhook registration to identify which resources to update. Along with that we're storing sync_tokens for resources in their respective models.
Currently there is no way to cancel a webhook because we are not persisting its channel_id. Which means even if we delete a resource from our system, we'll keep getting callback requests for those resources.
A new model called 'NotificationChannel' can provide a simple interface for dealing with this. A NotificationChannel can belong to any resource that is being watched. This will also eliminate the need to store sync_tokens in respective models.
Also, When fetching 'Daily Events' for a user:
Since we're storing all start and end times in UTC in the database, and the user may be in any timezone, how to query the start and end times for that user in his timezone?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.