02 - Back-End Setup
In this module, we'll set up our file structure for our Server.
File Structure
Create the following folders and files in your JavaScript library:
Node-Server
└── server
└── .gitignore
└── app.js.gitignore
To create a .gitignore, you will go into VS Code and Add new file. The file extension is .gitignore. This is an actual file type.
Add
node_modules/to your.gitignore. TAgain, anytime you work with npm packages, it's best practice to include this in your.gitignore. If you forget, hundreds or thousands of extra, unnecessary files will be pushed to your GitHub repository. Simply add the following to the.gitignorefile:node_modules/app.jscan be left blank for now.
Last updated