Skip to content

n704/Calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calendar

This is calendar App that user can create event and sync with google calendar.

Archiecture

Application uses MicroServices Archiecture for solution. It consists of 2 services

  • Backend
  • Frontend

Backend

It consist of python flask server running at port 5000. Services exposes all api needed by the backend to frontend service.

Frontend

It consist of nodejs server running at port 3000. This service server all the html page. Service is Designed in SPA using ReactJS.

Database

Sqlite is used as database for the application. Intilize the database:

cd /Path/to/backend
python app.py db upgrade

Installation

Backend

cd /Path/to/Calendar/backend
pip install -r requirements.txt
python app.py runserver

Frontend

cd /Path/to/Calendar/frontend
npm install
npm start

Docker-Compose

Running application using docker container.

cd /Path/to/Calendar
docker-compose up

Syncing

In all calendar event there is a field called sync. by default it is false, meaning need to sync with Google Calendar. Durning sync all event in google calendar get inputed to database with sync as true. So only one copy of event is create on both sides.