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_keys
in the root directory :mkdir google_api_client_keys
. - Move the
credentials.json
file togoogle_api_client_keys
directory. - A sample excel sheet consisting of various holiday calendars for offices is kept in the
sample
folder. Add it to your Google Sheets (Spreadsheet). - Obtain the spreadsheetID and add it to the
sheet_id
variable incontojson.py
andholiday.py
scripts. - Run
pip install -r requirements.txt
in 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.