Skip to content

Commit 699ec58

Browse files
committed
updated readme and fix typo error of trim
1 parent c2e3452 commit 699ec58

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

back-end/readme.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ To set up the Code Verse Backend using Docker, follow these steps:
6565

6666
The backend is listening on port `3000` of your local machine.
6767

68+
<br/>
69+
6870
## Stopping the Container
6971

7072
To stop the Code Verse Backend container, use the following command:
@@ -110,7 +112,7 @@ The Code Verse Backend exposes the following API endpoints:
110112
}
111113
```
112114

113-
Javascript example of making an API call
115+
Javascript example of making an API call
114116

115117
```javascript
116118
const fetchAPI = async () => {
@@ -126,11 +128,14 @@ The Code Verse Backend exposes the following API endpoints:
126128
};
127129

128130
try {
129-
const response = await fetch("https://api.example.com/api/execute", {
130-
method: "POST",
131-
headers: headers,
132-
body: code,
133-
});
131+
const response = await fetch(
132+
"https://code-verse.onrender.com/api/execute",
133+
{
134+
method: "POST",
135+
headers: headers,
136+
body: code,
137+
}
138+
);
134139

135140
if (!response.ok) {
136141
throw new Error("Request failed with status " + response.status);
@@ -144,3 +149,9 @@ The Code Verse Backend exposes the following API endpoints:
144149
};
145150
fetchAPI();
146151
```
152+
153+
<br/>
154+
155+
## Supported Languages For Online Compilation
156+
157+
> C, C++, Java, Python and JavaScript

0 commit comments

Comments
 (0)