-
-
Notifications
You must be signed in to change notification settings - Fork 63
Update RAPIDAPI and Firebase setup instructions for new UI (2025) #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -89,15 +89,13 @@ To start the project using Docker Compose: | |||||
|
|
||||||
| 3. **Access the RapidAPI Dashboard**: | ||||||
| - After signing up, go to the [RapidAPI Dashboard](https://rapidapi.com/judge0-official/api/judge0-ce). | ||||||
| - In the navigation bar, select **API Hub**. | ||||||
|
|
||||||
| 4. **Navigate to the API's Section**: | ||||||
| - Click on **Endpoints** to view | ||||||
| - You will see multiple endpoints such as Submissions, About, and Languages. | ||||||
| - In the navigation sidebar, you will see multiple endpoints such as Submissions, Statuses, Configuration, Information, and Languages. | ||||||
|
|
||||||
| 5. **Using the Submissions Endpoint**: | ||||||
| - For code submissions, go to the **Submissions** endpoint and then select **Create Submission**. | ||||||
| - 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. | ||||||
| - 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. | ||||||
|
|
||||||
| 6. **Copy Required Keys**: | ||||||
| - 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 | |||||
|
|
||||||
| ## Firebase Configuration | ||||||
|
|
||||||
| 1. Create a Firebase account at [firebase.google.com](https://firebase.google.com/) and go to the console. | ||||||
| 2. Go to Authentication. | ||||||
| 3. In Sign-in method, choose the Google provider. | ||||||
| 4. Go to settings and you'll see authorized domains. | ||||||
| 5. Add your production URL in authorized domains for our project: `https://custom-code-editor.vercel.app/` | ||||||
| 6. Create a `.env` file in your root directory and add these values: | ||||||
| 1. Create a Firebase account at [firebase.google.com](https://firebase.google.com/) and click on "go to the console". | ||||||
| 2. Go to `Get Started by setting up a Firebase project` or `Add project` if you've used Firebase before. | ||||||
| 3. Enter a project name (e.g., CustomCodeEditor) then click Continue (disable Google Analytics (optional)), | ||||||
| 4. Copy your SDK config snippet and then Create project. | ||||||
|
|
||||||
| -SDK config snippet should look like: | ||||||
| const firebaseConfig = { | ||||||
| apiKey: "AIzaSy....", | ||||||
| authDomain: `your-app-name.firebaseapp.com`, | ||||||
| projectId: `your-app-name`, | ||||||
| storageBucket: `your-app-name.appspot.com`, | ||||||
| messagingSenderId: `1234567890`, | ||||||
| appId: `1:1234567890:web:abc123` | ||||||
DhanushNehru marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| }; | ||||||
|
|
||||||
| 5. After it's ready click on continue to proceed to the Firebase dashboard. | ||||||
| 6. On the Project Overview page, click "+add app" and select "</>" Web option. | ||||||
| 7. Enter an App nickname (e.g., CustomCodeEditor) and click on Register app then continue to console. | ||||||
| 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 | ||||||
DhanushNehru marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| 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 | |
| 8. Go to the **Build** section and select `Authentication` then in [`sign in providers`] select `Google`. Enable and select support email for the project then click on the save button |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.