Skip to content

Instantly share code, notes, and snippets.

View sandrabosk's full-sized avatar
👩‍💻
Always a student, never a master. Have to keep moving forward. ~C.Hall

Aleksandra Bošković sandrabosk

👩‍💻
Always a student, never a master. Have to keep moving forward. ~C.Hall
  • Ironhack
View GitHub Profile
// ============================================================
// Definition of an object / dictionary
// ============================================================
const fruits = {
color: 'red',
length: 3
}
// ============================================================
@sandrabosk
sandrabosk / git_fetch_all.bat
Created April 26, 2021 08:32 — forked from JuanLengyel/git_fetch_all.bat
Fetch from all remote for all the repositories in current directory
@echo off
for /d %%i in (%cd%\*) do (
echo *************************************************************************
echo "%%i"
cd "%%i"
echo -----------------------------------------
echo fetch --all -v
@sandrabosk
sandrabosk / git_apply_all.bat
Created April 26, 2021 08:31 — forked from JuanLengyel/git_apply_all.bat
Applies a git command to all of the repositories found in the current folder
@echo off
set /p git_command="Type your command: "
for /d %%i in (%cd%\*) do (
echo *************************************************************************
echo "%%i"
cd "%%i"

Data files cleanup

Overall

  • all docx to be removed or moved to some place since they are replaced with md files - Sandra
  • how we will distribute to students files they need for in-class activities? (to be discussed with everyone on Monday, 28/09)

Unit 1

lesson 1.1

🙌 Week 12 - Day 1

Class duration: 180 min

Setup (reflects to all the lessons):

  • No additional setup required

  1. What is package.json?
  2. What is package-lock.json?
  3. What are node_modules?
  4. Why do we need .gitignore file?
  5. What is .env file, why do we need it? Which npm package do we need to use to utilize the .env?
  6. What are middlewares?
  7. Which npm package do we need for password hashing?
  8. What is "salt"? What are "salt rounds"?
  9. What is authentication? What is authorization?
// How would you get the value of queries and params in the following examples?
// PARAMS:
// 1:
// https://dummyexample.com/albums/123cool4lbum
app.get('/albums/:albumId', (req, res) => {
console.log(req.params.albumId); // 123cool4lbum
const { albumId } = req.params;
});

In the service file, add a new method to fetch a sub-breed. Go ahead and sneak peek into the official dog API docs and after creating this method, create a view to display the sub-breeds based on the passed breed. Hint: You need to add routes to your file and create a dynamic route that will be able to receive different breeds and show the sub-breeds.