- Create a GCP App
- Go to API Overview
- Go to "Credentials" on the menu to the left
- Hit Create Credentials at the top of the page
- For the "Approved JavaScript Origins", set it to be
http://localhost:8000
. (TODO: We need to add our heroku deployments to this list) - For the "Authorized Redirect URLs", set it to be
http://localhost:8000/accounts/google/login/callback/
. (TODO: See above) - (side note: if you are running into errors, keep in mind that
localhost
and127.0.0.1
are two different domain names, even though they resolve to the same place)
- For the "Approved JavaScript Origins", set it to be
- Run migrations:
python manage.py migrate
- Create superuser:
python manage.py createsuperuser
- note that if you create it with your google email that you'll be testing with, there will be a conflict, so feel free to use a dummy email here. - Copy
.env.template
over to your very own local.env
file - note that this file is in.gitignore
for a good reason - we don't want anybody to have access to anybody else's.env
file. - Copy the client id and secret key (gotten from the GCP console) into the corresponding environment variables into your new
.env
.
-
Notifications
You must be signed in to change notification settings - Fork 0
A recipe website created by Marcus Mann et al. using AWS S3 to store images, Google OAuth for a seamless login, and a unique "forking" ability, allowing users to personalize others' recipes
uva-cs3240-s22/word-of-mouth
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A recipe website created by Marcus Mann et al. using AWS S3 to store images, Google OAuth for a seamless login, and a unique "forking" ability, allowing users to personalize others' recipes