From the course: MERN Essential Training (2020)

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Server files and folders

Server files and folders

From the course: MERN Essential Training (2020)

Start my 1-month free trial

Server files and folders

- [Instructor] So before we start adding endpoints to our server, let's set up our folder structure for the project. I personally put everything in a source folder, and then start branching out the folders and files I'll use for the server by controllers, models and routes. So let's get to it. So you want to get back into the Backend folder here. So if you're in the Frontend, you make sure that you have the backend selected. And as you have that selected, let's create folders first. So I'm going to create first controllers folder. And then click again on the Backend. And then create a second folder, which I'll call models, and then click Backend then do a third time routes. And then inside of these folders that we just created we'll create the files. So for the routes, I'm going to create a brand New File and I'm going to call this one soccerRoutes.js and then let's create also inside of the models, a new file. For this…

Contents