From e26b79b6225a319f3802e17c42a7bd8550860099 Mon Sep 17 00:00:00 2001 From: Anirudh Joshi <55396976+anirudhj2000@users.noreply.github.com> Date: Sun, 22 Sep 2024 14:51:36 +0530 Subject: [PATCH] docs: Update Readme to include steps google maps api key and sample .env (#388) * Update README.md * Update README.md minor fix --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3634fb2b..c4248a98 100644 --- a/README.md +++ b/README.md @@ -44,15 +44,17 @@ Follow these steps to set up the repository locally and run it. # # AUTH # - NEXTAUTH_SECRET="koXrQGB5TFD4KALDX4kAvnQ5RHHvAOIzB" + NEXTAUTH_SECRET= NEXTAUTH_URL="http://localhost:3000" - + # # Bunny CDN # - CDN_SZ_NAME= - CDN_BASE_PATH= CDN_API_KEY= + CDN_BASE_UPLOAD_URL= + CDN_BASE_ACCESS_URL= + + NEXT_PUBLIC_GOOGLE_MAPS_API_KEY= ``` 2. To generate AUTH_SECRET, @@ -143,3 +145,41 @@ Password: '123456'; Which is https://[your-pull-zone-hostname]/[any folder name you might have added otherwise empty] or get link from the dashboard as mentioned below  CDN_BASE_ACCESS_URL + + +# Steps to Set Up Google Maps Platform API Key + +To use the Google Maps API in your applications, follow the steps below to create and set up your API key. + +### Step 1: Go to Google Cloud Console +1. Navigate to the [Google Cloud Console](https://console.cloud.google.com/). +2. If you don’t have a Google account, create one and sign in. + +### Step 2: Create a New Project +1. In the Cloud Console, click on the **Select a project** dropdown at the top. +2. Click **New Project** to create a new project. +3. Give your project a name, select the organization (optional), and choose the billing account. +4. Click **Create**. + +### Step 3: Google Maps Platform +1. Search Google Maps Platform in the Console search bar +Screenshot 2024-09-22 at 10 15 15 AM + +2. If your account is not setup yet , finish your account setup +Screenshot 2024-09-22 at 10 02 59 AM + +3.After Completeing account setup , select the "Keys and Credentails" Section. +4.Then select the Create Credentials option , under which you can select the "API Key Option" +Screenshot 2024-09-22 at 10 05 36 AM + +5. You will receive a API Key , add the key to the NEXT_PUBLIC_GOOGLE_MAPS_API_KEY in the .env +Screenshot 2024-09-22 at 10 19 33 AM + + + +### Step 4: Changes required to make it work on localhost +1. Although the documentation mentions that without restriction , the API key will work everywhere, that is not the case for http requests. +2. Add a restriction and mention your localhost along with your port for it to start working on local , and save and continue +Screenshot 2024-09-22 at 10 06 44 AM + +3. to test navigate to the http://localhost:3000/create , and test the "Where is the job located" input.