Intro to Mongoose Lab Setup
Setup
Open your Terminal application and navigate to your ~/code/ga/labs directory:
cd ~/code/ga/labs
Make a new repository on GitHub named intro-to-mongoose-lab.
Clone a copy of your remote repo locally by using the git clone command:
git clone https://github.com/<github-username>/intro-to-mongoose-lab.git
🚨 Do not copy the above command. It will not work. Your GitHub username will replace
<github-username>(including the<and>) in the URL above.
Next, cd into your new cloned directory, intro-to-mongoose-lab:
cd intro-to-mongoose-lab
In this directory create a app.js file:
touch app.js
Create a node project along with its package.json file by using this command:
npm init -y
Open the project’s folder in VS Code:
code .