In this video, Emmanuel Henri sets the folder structure for the following videos. Then he adds the proper files inside of the folders.
- [Narrator] So before we start adding…end points to our server,…let's set up our folder structure for a project.…I personally put everything in the source folder,…and then start branching out the folders and files…I'll use for the server, my controllers, models, and routes.…Let's get to it.…So the first thing I want you to do…is use whatever techniques your editor permits you,…either click on the plus here for new folder,…or right click in the directory here,…and create a new folder.…And this new folder we'll call source.…
This is where all our files are going to be.…Then right click again, create a new folder again,…and then create the controllers folder.…And this is where we're going to have…most of the logic of our server,…so when we need to return specific data…and send it to our API,…then this is where our controllers are going to be.…So we're using kind of the MVC model here.…The only letter in the MVC we're not using is the V,…so we're going to do the models and the controllers.…
So the next folder we need to create is the model,…
- Setting up a project and a server
- Setting up a database and schema
- Creating POST, GET, PUT, and DELETE endpoints
- Serving files
Skill Level Intermediate
Node.js: Extend and Maintain Applicationswith Daniel Khan3h 35m Intermediate
Node.js: Build Your First Microservicewith Daniel Khan2h 9m Intermediate
1. Setting Up
2. Initial Server Build
3. CRUD Operations
4. Other API Options
Static files serving3m 16s
Next steps1m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.