- 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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ============================================================ | |
// Definition of an object / dictionary | |
// ============================================================ | |
const fruits = { | |
color: 'red', | |
length: 3 | |
} | |
// ============================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for /d %%i in (%cd%\*) do ( | |
echo ************************************************************************* | |
echo "%%i" | |
cd "%%i" | |
echo ----------------------------------------- | |
echo fetch --all -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /p git_command="Type your command: " | |
for /d %%i in (%cd%\*) do ( | |
echo ************************************************************************* | |
echo "%%i" | |
cd "%%i" | |
- What is
package.json
? - What is
package-lock.json
? - What are
node_modules
? - Why do we need
.gitignore
file? - What is
.env
file, why do we need it? Which npm package do we need to use to utilize the.env
? - What are middlewares?
- Which npm package do we need for password hashing?
- What is "salt"? What are "salt rounds"?
- What is authentication? What is authorization?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
}); |
Students should use the Game of Thrones mock API and use the following endpoints with their React apps:
- All episodes - https://got-mock-api.herokuapp.com/episodes - to list all the episodes
- One episode details - https://got-mock-api.herokuapp.com/episodes/{id} - to check the details of a specific episode.
- Filter by season - have a tab for each of the seasons with all the episodes that belong to that season
- Search bar - search by episode name.
Students should use the restcountries api and use the following endpoints with their React apps:
- All - https://restcountries.eu/rest/v2/all - to list all the countries
- Name - https://restcountries.eu/rest/v2/name/{name} - to search by country name.
- Region - https://restcountries.eu/rest/v2/region/{region} - to search by region: Africa, Americas, Asia, Europe, Oceania.
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.
NewerOlder