Express File Structure Flashcards

1
Q

Name the files and folders needed for an Express project.

A
  1. Node Modules folder
  2. Routes folder
  3. Controllers folder
  4. Public folder
  5. app.js file
  6. server.js file
  7. package.json file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is stored in the Node Modules folder?

A

NPM dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is stored in the routes folder?

A

All the application URL routes divided into files for each resource

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is stored in the controllers folder?

A

All the controllers for the application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is stored in the public folder?

A

Static files, like HTML, CSS, JS frontend files, images, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is in the app.js file?

A

All the app middleware, i.e., the entire middleware stack used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is stored in the server.js file?

A

It acts as the app entry point, and contains only development/production configurations and the port listener

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is stored in the package.json file?

A

Information about the application similar to a manifest.json file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly