This file contains hidden or 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
const http = require('http') | |
const url = require('url') | |
const port = 8000 | |
const requestHandler = (request, response) => { | |
console.log(request.url) | |
const current_url = new URL(request.url, 'http://localhost:8000') | |
const search_params = current_url.searchParams | |
const name = search_params.get('name') | |
const city = search_params.get('city') |
This file contains hidden or 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
vmalep@L390Y:~/Documents/study/WildCodeSchool/quests/planets$ find | |
. | |
./fictional | |
./fictional/coruscant.jpeg | |
./fictional/arrakis.jpeg | |
./fictional/cybertron.jpeg | |
./real | |
./real/terrestrial | |
./real/terrestrial/earth.jpeg | |
./real/terrestrial/neptune.jpeg |
This file contains hidden or 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
I find weird to copy/past real content of my Linux install and make it public. | |
Therefore I am limiting this exercice to executing the 3 commands into my WCS folder... | |
vmalep@L390Y:~/Documents/study/WildCodeSchool$ cd quests/ | |
vmalep@L390Y:~/Documents/study/WildCodeSchool/quests$ ls | |
hello-world my-super-website wild-git | |
vmalep@L390Y:~/Documents/study/WildCodeSchool/quests$ pwd | |
/home/vmalep/Documents/study/WildCodeSchool/quests |
NewerOlder