All right, and before we express server and start setting up our controllers and all that cool stuff,
I want to talk about the imports and exports in note.
So for a long, long, long, long, long time node was using actually it is still using common areas
where essentially we use this require.
But there's also support right now for your six modules.
Something about what worry I've been doing for the last hour, essentially in our rundown import from.
And then the package component and you get the gist.
And technically, when you're just building an API, it kind of comes down to preference whether you
want to use common gas or you want to use six in node.
But in my opinion, when you're working on a project where you already have the front end application
using this import and export basically S6 and then you have the server where you need to switch over
to your common address.
This leads to some silly bugs over the time.
So it's definitely my preference to set up both the server and the frontend with the S6.
Now front end is right away from the get go with Create React app, but on a server, we actually need
to do that manually.
And according to their darks, we have two options we can either use the file extension a.j.'s or in
the package JSON.
We can set up type and module.
And let me showcase that.
So again, if you navigate to their docs domain, so file's ending with images or files and then jazz.
If in a package JSON top level we have type module and this is what I'm going to do.
So I'm going to navigate your package, JSON and then somewhere here, let's say after the main one,
let's go with type and let's set it up as module.
And once we do that from now on will be able to use, import and export.
In our server as well.
So not only on the front end, but also we can do that in a server, and we'll do that starting with
the next video wherein we'll set up our Express one.
Now, if you don't want to, you don't have to do this part.
Pardon my cash.
I'll definitely push for this one because like I said, when you're developing mine project, it leads
to somewhat confusion when you have front and running one import set up and then the server running
a different one.
And with this in place now, we can start setting up our basic express server.