A simple Holiday Calendar web application written using Flask. The application uses Google Sheets as the back-end to get information pertaining to the holiday calendars of offices.
Flask is used as the web framework for building the application. HTML, CSS and jQuery is used for front-end development.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Create the Google Sheets API key from here.
- Download the credentials.json file and keep it aside.
- Clone the repo:
git clone https://github.com/rat9615/flask-holcalendar.git. - Change directory:
cd flask-holcalendar. - Create a folder called
google_api_client_keysin the root directory :mkdir google_api_client_keys. - Move the
credentials.jsonfile togoogle_api_client_keysdirectory. - A sample excel sheet consisting of various holiday calendars for offices is kept in the
samplefolder. Add it to your Google Sheets (Spreadsheet). - Obtain the spreadsheetID and add it to the
sheet_idvariable incontojson.pyandholiday.pyscripts. - Run
pip install -r requirements.txtin your terminal.
After installation type the following command in your terminal to run the application.
python routes.py
If you want to send email through the Contact Us form, make sure you have entered all the required credentials in the scripts.
