Skip to content

Commit 7c11a43

Browse files
authored
Merge pull request #211 from shreyas-damn/readme-update
Update RAPIDAPI and Firebase setup instructions for new UI (2025)
2 parents df325bb + 09ef21a commit 7c11a43

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,13 @@ To start the project using Docker Compose:
8989

9090
3. **Access the RapidAPI Dashboard**:
9191
- After signing up, go to the [RapidAPI Dashboard](https://rapidapi.com/judge0-official/api/judge0-ce).
92-
- In the navigation bar, select **API Hub**.
9392

9493
4. **Navigate to the API's Section**:
95-
- Click on **Endpoints** to view
96-
- You will see multiple endpoints such as Submissions, About, and Languages.
94+
- In the navigation sidebar, you will see multiple endpoints such as Submissions, Statuses, Configuration, Information, and Languages.
9795

9896
5. **Using the Submissions Endpoint**:
9997
- For code submissions, go to the **Submissions** endpoint and then select **Create Submission**.
100-
- Here, you will find `X-RapidAPI-Key`, `X-RapidAPI-Host`, and the URL (`url`) needed for API calls. Url is located below the "Code Snippets" section.
98+
- Here, you will find `X-RapidAPI-Key`, `X-RapidAPI-Host`, and the URL (`url`) needed for API calls. API-Key, API-Host and the URL is located below the "Code Snippets" section.
10199

102100
6. **Copy Required Keys**:
103101
- Copy the `RAPIDAPI_HOST` and `RAPIDAPI_KEY` values. These are necessary to perform API calls to the code execution system.
@@ -107,12 +105,26 @@ By following these steps, you'll be able to set up Judge0 for code submissions u
107105

108106
## Firebase Configuration
109107

110-
1. Create a Firebase account at [firebase.google.com](https://firebase.google.com/) and go to the console.
111-
2. Go to Authentication.
112-
3. In Sign-in method, choose the Google provider.
113-
4. Go to settings and you'll see authorized domains.
114-
5. Add your production URL in authorized domains for our project: `https://custom-code-editor.vercel.app/`
115-
6. Create a `.env` file in your root directory and add these values:
108+
1. Create a Firebase account at [firebase.google.com](https://firebase.google.com/) and click on "go to the console".
109+
2. Go to `Get Started by setting up a Firebase project` or `Add project` if you've used Firebase before.
110+
3. Enter a project name (e.g., CustomCodeEditor) then click Continue (disable Google Analytics (optional)),
111+
4. Copy your SDK config snippet and then Create project.
112+
113+
-SDK config snippet should look like:
114+
const firebaseConfig = {
115+
apiKey: "AIzaSy....",
116+
authDomain: "your-app-name.firebaseapp.com",
117+
projectId: "your-app-name",
118+
storageBucket: "your-app-name.appspot.com",
119+
messagingSenderId: "1234567890",
120+
appId: "1:1234567890:web:abc123"
121+
};
122+
123+
5. After it's ready click on continue to proceed to the Firebase dashboard.
124+
6. On the Project Overview page, click "+add app" and select "</>" Web option.
125+
7. Enter an App nickname (e.g., CustomCodeEditor) and click on Register app then continue to console.
126+
8. Go to the **Build** endpoint and select `Authentication` then in [`sign in providers`] select `Google`. Enable and select support email for the project then click on the save button
127+
9. Create a `.env` file in your root directory and add these values:
116128
```
117129
REACT_APP_FIREBASE_API_KEY=""
118130
REACT_APP_FIREBASE_AUTH_DOMAIN=""

0 commit comments

Comments
 (0)