You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-10Lines changed: 22 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,15 +89,13 @@ To start the project using Docker Compose:
89
89
90
90
3.**Access the RapidAPI Dashboard**:
91
91
- After signing up, go to the [RapidAPI Dashboard](https://rapidapi.com/judge0-official/api/judge0-ce).
92
-
- In the navigation bar, select **API Hub**.
93
92
94
93
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.
97
95
98
96
5.**Using the Submissions Endpoint**:
99
97
- 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.
101
99
102
100
6.**Copy Required Keys**:
103
101
- 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
107
105
108
106
## Firebase Configuration
109
107
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:
0 commit comments