-
Notifications
You must be signed in to change notification settings - Fork 86
/
.env.example
53 lines (40 loc) · 2.53 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Since the ".env" file is gitignored, you can use the ".env.example" file to
# build a new ".env" file when you clone the repo. Keep this file up-to-date
# when you add new variables to `.env`.
# This file will be committed to version control, so make sure not to have any
# secrets in it. If you are cloning this repo, create a copy of this file named
# ".env" and populate it with your secrets.
GOOGLE_ID=
GOOGLE_SECRET=
FACEBOOK_APP_ID=
FACEBOOK_APP_SECRET=
PUBLIC_BASENAME=http://localhost:3000/
PORT=3000
MONGO_SERVER=mongodb://127.0.0.1:27017
## How to get your GOOGLE_ID and GOOGLE_SECRET
# Create a Google Cloud Platform (GCP) Project:
# - Go to the Google Cloud Console.
# - Create a new project by clicking on the project dropdown menu at the top of the page and selecting "New Project".
# - Follow the prompts to name your project and select your organization.
# - Enable the Google Sign-In API:
# In the Cloud Console, go to the "APIs & Services" > "Library".
# - Search for "Google Sign-In API" and select it.
# - Click on the "Enable" button to enable the API for your project.
# - Create OAuth 2.0 Credentials:
# In the Cloud Console, navigate to "APIs & Services" > "OAuth consent screen".
# - Choose either "External" or "Internal" based on your use case and fill in the required information.
# - After setting up the consent screen, go to "APIs & Services" > "Credentials".
# - Click on "Create Credentials" and select "OAuth client ID".
# - Choose "Web application" as the application type.
# - In the "Authorized redirect URIs" section, add the URL where users will be redirected after signing in with Google. Typically, this would be something like https://yourwebsite.com/auth/google/callback.
# - Click "Create" to generate your OAuth 2.0 credentials. This will provide you with your GOOGLE_ID (Client ID) and GOOGLE_SECRET (Client Secret).
# ## How to get your FACEBOOK_APP_ID and FACEBOOK_APP_SECRET
# Create a Facebook Developer Account:
# - Go to the Facebook Developer website (https://developers.facebook.com/) and sign in with your Facebook credentials.
# - Create a new app by clicking on the "My Apps" dropdown menu at the top right corner and selecting "Create App."
# - Follow the prompts to set up your new app. Choose a display name, category, and other relevant details.
# Configure Basic Settings:
# - Once your app is created, navigate to the app dashboard.
# - Under the "Settings" tab, go to the "Basic" section.
# - Add your website domain under "App Domains" and save the changes.
# - Note down your App ID and App Secret.