Skip to content

Transform FET timetables to Calendar API calls, add, edit or delete events.

License

Notifications You must be signed in to change notification settings

omega-coder/fet-to-calendar-api-manager

Repository files navigation

FET Timetable to Google Calendar

Export FET generated timetable (School schedule timetable) to Google Calendar automatically using google calendar API.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

This project was developped using Python 3, so you obviously need python 3 installed on your machine.You can download python here, make sure you download python 3 and preferably the last version.

You can install the other requirements using pip from the requirement.txt file

pip install -r requirements.txt

Deployment

1. Get a CLIENT_ID and CLIENT_SECRET using the google calendar api console.

2. set up environment variables for the app.

    export GOOGLE_OAUTH_CLIENT_ID="xxxxxxxxxx-xxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
    export GOOGLE_OAUTH_CLIENT_SECRET="xxxxxxxxxxxxxxxx-xxxxxx"

3. Run the app.

Note: Application port must be the same as the one specified in auth link at the google dev console

    python app.py

Or use gunicorn server (Recommended)

    gunicorn --bind 0.0.0.0:5000 app:app 

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • M. BATATA Soufiane (Enseignant Chercheur @ ESI).
  • M. CHALLAL Yacine (Professor @ ESI)