Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/content/3/en/part3b.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ lang: en

<div class="content">

Next, let's connect the frontend we made in [part 2](/en/part2) to our own backend.
Next, let's connect the frontend we made in [part 2](/en/part2) to the Express backend we built in part 3a.

In the previous part, the frontend could ask for the list of notes from the json-server we had as a backend, from the address <http://localhost:3001/notes>.
Our backend has a slightly different URL structure now, as the notes can be found at <http://localhost:3001/api/notes>. Let's change the attribute __baseUrl__ in the frontend notes app at <i>src/services/notes.js</i> like so:
In part 2, the frontend fetched notes from json-server at http://localhost:3001/notes. The Express backend we built in this part has a slightly different URL structure — notes are now at http://localhost:3001/api/notes. Let's change the attribute __baseUrl__ in the frontend notes app at <i>src/services/notes.js</i> like so:

```js
import axios from 'axios'
Expand Down Expand Up @@ -100,6 +99,7 @@ There are also some other free hosting options that work well for this course, a
Some course participants have also used the following services:

- [Replit](https://replit.com)
- [Railway](https://railway.app)
- [CodeSandBox](https://codesandbox.io)

If you know easy-to-use and free services for hosting NodeJS, please let us know!
Expand Down