- Vishwaa Sofat: Project Manager and Success.
- Kazi Jamal: Opportunity bulletin, scholarship finder
- Eric Lau: OAuth, accounts, reminders/notifications
- Raymond Lee: Opportunity bulletin, scholarship finder
- Ahmed Sultan: UI/UX, routing, form submission, productivity
Caerus is a website based off of Mr. Blumm's weekly Opportunity Bulletin, where students at Stuyvesant can search through a database of opportunities, internships and scholarships curated by Mr. Blumm and Stuyvesant faculty.
- Google OAuth2 API: Retrieves basic information from a user's Google account. We use it for authentication and to get the email, name, and picture from a user's account.
- To prevent conflicts with globally installed packages, it is recommended to run everything below in a virtual environment.
Set up a virtual environment by running the following in your terminal:
python -m venv hero
# replace hero with anything you want
# If the above does not work, run with python3 (this may be the case if a version of python2 is also installed)To enter your virtual environment, run the following:
. hero/bin/activateTo exit your virtual environment, run the following:
deactivateRun the following commands in your terminal
git clone https://github.com/vsofat/caerus.git
cd caerusRun the following line in your virtual environment
pip install -r requirements.txt- Head over to the Google API Console and create a new project.
- Click on the OAuth consent screen tab and select the External option.
- Name the application and click save.
- Click on the Credentials tab and click CREATE CREDENTIALS.
- Select the OAuth client ID option.
- Choose web application as the Application type.
- Add http://127.0.0.1:5000 as an Authorized JavaScript origin.
- Add http://127.0.0.1:5000/redirect as an Authorized redirect URI.
- Create the project and click OK.
- Click the download button on the right-hand side of the OAuth 2.0 Client ID.
- Rename the file to
oauth-client.jsonand place it in the root of this repository.
The file should look like this:
{
"web": {
"client_id": "",
"project_id": "",
"auth_uri": "",
"token_uri": "",
"auth_provider_x509_cert_url": "",
"client_secret": "",
"redirect_uris": [],
"javascript_origins": []
}
}Run the following line in your virtual environment
python3 app/__init__.pyOpen a browser and head to http://127.0.0.1:5000/