Now as mentioned,
we're going to build up on the project we built
in the previous section.
So that's what I opened here,
but there is an important difference
compared to that project.
I added a new backend folder to my project
and you find that folder attached as a SIP file
and you should simply add it to your project as well.
This folder, in the end contains some dummy API code,
and after downloading the SIP file,
you should navigate into that folder once you added it
and run npm install to install all the dependencies
of that extra API.
Because this backend mini project here
is basically a separate project,
it's integrated into this overall NextJS project,
but it's a separate backend server
with which I wanna simulate that we're not just building
our NextJS application here,
but that we also might have some extra rest API
that's providing some data for this NextJS application here
and potentially also for our clients.
Now, if we take a look at this app.js file,
which is the main code file,
the only code file of this separate backend project,
we see that in there we still got the DUMMY_NEWS there,
but only so that we can use that dummy data to
pre-populate a database as SQLite database,
which is this file here, this data.db file.
Because the idea in this section now is to simulate that
we do use a database to store data.
Later in the course, you will also learn how to change
that data in the database.
For the moment, in this section,
it's all about fetching data
and that's why I'm initializing
and pre-populating that database with those DUMMY_NEWS.
But in the end, the simulation now is
that we don't have the DUMMY_NEWS in our code,
even though we technically do,
but instead in a database.
I guess you get my point.
That's what we're trying to simulate in this section.
Well, and then the main code of this backend API
is one single route,
get route to /news on that backend server,
which in the end fetches all the news and returns them.
That's what we do in this backend API.
And we could now use this backend API in our NextJS
application in order to fetch that data
or from any other client.
And that's indeed what we'll get started
with in the next lectures.