This Teacher Contact Site is a final project for a software development class. It is written to meet the needs of a Stuyvesant High School teacher, Mr. Wisotsky, for an easier way to contact students and their parents.
- May 17, 2016: First meeting with client
- May 26, 2016: Second meeting with client
- Login through Google API (stuy.edu only)
- Logout
- Import contact info of students
- Contact info overrides
- Allow students to import contact info of parents
- Class profile
- Student profile
- Teachers see students info
- Teacher access to contactInfo.html
- Send single email
- Send mass emails (link to create email: https://mail.google.com/mail/?view=cm&fs=1&to=someone@example.com&su=SUBJECT&body=BODY&bcc=someone.else@example.com , www.w3schools.com/tags/ref_urlencode.asp)
- Logs of letters/what kinds of letters/notes to a log
- Show emails sent to a student (through window)
- Links to send previously generated letters (with ability to edit)
- (Stretch) Print address on double sided paper
- (Stretch) Voice call
- https://github.com/BlackrockDigital/startbootstrap-bare
- https://developers.google.com/gmail/api/quickstart/js
- Get API keys from https://console.developers.google.com
- Select 'Create a project...' from dropdown on top right, 'Select a project'
- Fill in project name with 'Stuyvesant Contact Site'
- Click on 'Google+ API' under Social APIs
- Click on the blue 'Enable' button
- On the left navigation bar, go to the 'Credentials' page
- Go to the 'OAuth consent screen' tab
- Fill in 'Product name shown to users' with 'Stuyvesant Contact Site'
- Click 'Save' (Will be directed to a credentials page)
- Select Web Application under 'Application type'
- Name: Stuyvesant Contact Site
- Authorized Javascript origins: http://stuycontact.stuycs.org (or whatever IP/name)
- Click 'Create'
- Go to 'Credentials' tab
- Click on 'Stuyvesant Contact Site'
- Click 'Download JSON' button
- Save the json file as 'gmail.json'
- Go to the 'OAuth consent screen' tab
- Put the json file in the repo
├Teacher-Contact-Site
│└─gmail.json - Necessary python imports:
- flask
- json
- pymongo
- MongoDB
- Run app.py