Skip to content

kvpb/my_first_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

my-first-backend

how-to install your app

Launch a terminal emulator, e.g. Terminator, iTerm2 or VS Code's Integrated Terminal, and enter this:

mkdir my-first-backend_19820_x918te
cd my-first-backend_19820_x918te
git clone https://git.us.qwasar.io/my-first-backend_19820_x918te/my-first-backend
cd my-first-backend
npm init -y
npm i express
npm install -g npm

Parts I, II & III

Terminal Emulator 1 (Control-`)

node ./app.js

Terminal Emulator 2 (Control-`)

sh script.sh

Part I

Terminal Emulator 1 (Control-`)

node ./app.js

Terminal Emulator 2 (Control-`)

curl -i localhost:8000

Part II

Terminal Emulator 1 (Control-`)

node ./app.js

Terminal Emulator 2 (Control-`)

curl -i localhost:8000/birth_date
curl -i localhost:8000/birth_city
curl -i localhost:8000/wives
curl -i localhost:8000/picture

Part III

Terminal Emulator 1 (Control-`)

node ./app.js

Terminal Emulator 2 (Control-`)

curl -i http://localhost:8000/public
curl -i http://localhost:8000/protected
curl -i http://admin:admin@localhost:8000/protected
curl -i http://user:password@localhost:8000/protected
curl -i http://iamgoingtobeabillionaire:markmywords@localhost:8000/protected

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors