Skip to content

Latest commit

 

History

History
88 lines (84 loc) · 2.52 KB

README.md

File metadata and controls

88 lines (84 loc) · 2.52 KB

googleCalendarCrud

Simple fullstack app for crud actions over google calendar
Node, React, Typescript, PostgreSql

BACKEND

  • Node Express server
  • Googleapis module
  • Controllers
    • googleOAuth controller - google oauth2 login endpoints
    • calendar controller - event fetching, creation, update & deletion endpoints
  • Services
    • authorization service - verifies jwt recieved from google
    • calendar service - google calendar interactions
    • database service - adding action logs to database
  • Middleware
    • auth middleware - authorizes user using token from request header

FRONTEND

DATABASE

  • PostgreSql db
  • action_logs table - stores actions performed on events
![db](https://github.com/EdiSincek/googleCalendarCrud/assets/87430076/6af3260a-b954-4637-9e15-612371d7ca02)


POTENTIAL IMPROVEMENTS

  • Handling multiple concurrent users
    • Storing user data and access and refresh tokens to database
    • Setting access token of correct user on each request to google to eliminate data fetching from other accounts
  • Handling token expiration
    • Checking if token is expired
    • Refreshing access token using refresh token
  • Frontend improvements
    • Showing logs to the user.
    • Caching events
    • UI/UX improvements
  • Better error handling