-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
93 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
venv/ | ||
.env | ||
.env | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "coursecal", | ||
"version": "1.0.0", | ||
"description": "Automate the process of transferring your semester's calendar from your university's end to your personal calendar (google calendar/outlook calendar/etc)", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nishi7409/CourseCal.git" | ||
}, | ||
"author": "awesome people", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/nishi7409/CourseCal/issues" | ||
}, | ||
"homepage": "https://github.com/nishi7409/CourseCal#readme" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Django==2.2.13 | ||
git+https://github.com/django-nonrel/mongodb-engine | ||
Django==2.2.13 | ||
git+https://github.com/django-nonrel/djangotoolbox | ||
git+https://github.com/django-nonrel/[email protected] | ||
python-dotenv | ||
django-mongodb-engine-py3 | ||
google-api-python-client | ||
google-auth-httplib2 | ||
google-auth-oauthlib | ||
ics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,23 @@ | |
from django.db.models import Q | ||
from django import forms | ||
import json | ||
from ..microservices.googleCal import urlGenerator | ||
|
||
# Create your views here. | ||
def index(request): | ||
return render(request, 'index.html', {}) | ||
|
||
def save_university(request): | ||
if request.method == "POST": | ||
newUni = University(name="Rensselaer Polytechnic Institute", domain="rpi.edu") | ||
newUni.save() | ||
else: | ||
pass | ||
|
||
def save_student(request): | ||
if request.method == "POST": | ||
uniqueURL = URLCalendar(calendar=urlGenerator.createURL()) | ||
newStud = Student(name="Nishant Srivastava", email="[email protected]", phone_num=5186182796, calendar_link=uniqueURL) | ||
newStud.save() | ||
else: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
pass | ||
import ics | ||
|
||
# create events | ||
def createEvents(dict): | ||
pass | ||
|
||
if __name__ == '__main__': | ||
pass |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"installed":{"client_id":"481612620762-0uao027rlu4ngvteuec5cqvf8k82d9cv.apps.googleusercontent.com","project_id":"coursecal-1609087487843","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"CfjIPkHmHkevkg6cxyulU-SX","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import datetime | ||
import os.path | ||
import json | ||
|
||
# verify google calendar link | ||
def verify(link): | ||
pass | ||
|
||
# create events in the google calendar | ||
def createEvents(link, dict={}, colors=["black", "red", "blue", "pink", "orange", "purple"]): | ||
pass | ||
|
||
if __name__ == '__main__': | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import datetime | ||
import os.path | ||
import json | ||
|
||
# verify google calendar link | ||
def createURL(): | ||
return("https://www.google.com") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
pass | ||
# verify login | ||
def login(username, password): | ||
pass | ||
|
||
# get events from student's calendar (from university) | ||
|
||
|
||
def getEvents(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
pass | ||
# verify login | ||
def login(username, password): | ||
pass | ||
|
||
# get events from student's calendar (from university) | ||
def getEvents(): | ||
pass |