Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Full-Stack Vue + Node > Lesson 15

Using MVC directory structure

Like any application, how we organize our API code is important for ease of use.

We're going to use the MVC architecture for the server app i.e. "model, view, controller". You'll see as we progress that this is a logical and simple approach.

Controller

Let's begin by setting up the first controller. We'll create a new folder called controllers, and create a file items.js which will hold the logic for any route that loads items.

$ mkdir server/controllers

Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom