4) Master Project: Setting up E-commerce Project Flashcards
1
Q
-+Series of steps for cloning a public repo to your local and being able to push changes.
A
- Fork it (top right hand corner of repo)
- get the link for the public repo
- in the terminal: “git clone *paste-link* new-name
- cd to the new repo
- git remote remove origin
- create a repository on your github
- git remote add origin *paste link to new repo*
- git push origin master
2
Q
When you first create a new React project, which files in the src folder hold code that should be deleted?
A
index.js
App.js
App.css
3
Q
How to include SASS in a project?
A
- in terminal: “npm add node-sass” (*create-react-app comes with sass configurations built in, you just have to install it.)
- create a sass file for the component and import it into the component file.
4
Q
what is the package.lock file good for?
A
making sure that dependencies are consistent across all machines that run the application.
5
Q
what developer tool helps you seee how your components are organized?
A
inspect components tab
6
Q
Where should page components folder be placed and why?
A
in the pages folder because it is fundamentally different from regular components.