Closed Xavier-IV closed 1 year ago
Awesome stuff thank you for the contribution abe Zafranudin
Awesome stuff thank you for the contribution abe Zafranudin
Nice, nampak di wiki. Ada small adjustment di listing/bullet-point.
Dia tak newline.
The rest lgtm, thanks!
Note: You can copy paste this inside a "wiki" (recommended) as it is a doc of its own.
Github Setting > Features > Wiki (Toggle)
Afterward, feel free to attach this new Wiki to your Readme or to my PR: https://github.com/farhan-helmy/ratemysurau/pull/62
Overview
We are using Google OAuth to allow user to sign in into the application, and make adjustment to the records. If you are developing or contributing to this project, kindly follow the steps to configure your local OAuth.
Pre-Requisites
You will need to register to Google Cloud, in order to create project.
https://console.cloud.google.com/
Click "Select a Project", and setup a new project.
It'll take some time to setup, so be patient.
1. Configuring OAuth Consent Screen
Head over to this link to setup: https://console.cloud.google.com/apis/credentials/consent
Fill in the form as follows:
External
CariSurau-Dev
b. User Support Email:<your email>
c. Developer contact information:<your_email>
Add Users
b. Fill in your<email>
c. Click "Add" first time d. Click "Add" again for second time e. Click "Save and Continue"2. Configuring Credentials
Head over to this link: https://console.cloud.google.com/apis/credentials
+ Create Credentials
, chooseOAuth Client ID
Web Application
b. Name:CariSurau-Dev
c. Authorized Javascript URL:http://localhost:3000
d. Authorized redirect URL:http://localhost:3000/api/auth/callback/google
For more info about the callback URL, we are using NextAuth Google. More info: https://next-auth.js.org/providers/google
You should see a popup with credentials. Those are important secrets and never share with anyone. Do not commit into Git as well.
With that in mind, copy it accordingly into your ENVs.
/.env
3. Final Test
To verify that everything works well, feel free to head over to the system and try to login.
Login using your account as usual.
Finally, you can now add records into the system and play around!
ps: I've omitted my profile picture from the source for this screenshot purpose, otherwise you should see your profile picture on top-right.