Skip to content

Commit ef09f3e

Browse files
Verification complete: Node and express respond to curl with body message correct.
1. start up app: $ PORT=3100 node app.js Note the clustering/instance on port 3100, doesn't have to be 3100 2. Send a curl request: in 2nd terminal window, execute verifyscript.sh 3. output in 2nd terminal window will be response to curl: radsauce gimme things 'cause it's the same: OUTPUT is radsauce 4. output in 1st terminal where instance 0 is running: radsauce
1 parent 3950641 commit ef09f3e

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

verify.sh

-7
This file was deleted.

verifyscript.sh

+7-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ OUTPUT="$(curl --request POST -d radsauce http://localhost:3100/foo -H "Content-
44

55
echo "${OUTPUT}"
66
#
7-
# if[ "$OUTPUT" == 'radsauce' ];
8-
#
9-
# then
10-
# echo "gimme things 'cause it's the same.";
11-
#
12-
# fi
7+
if [ "${OUTPUT}" = "radsauce" ];
8+
9+
then
10+
11+
echo "gimme things 'cause it's the same: OUTPUT is ${OUTPUT}";
12+
13+
fi
1314

1415
#else
1516
#echo "nope failure";

0 commit comments

Comments
 (0)