0:00:29
what is going on guys
0:00:30
welcome back to another session of
0:00:33
raw coders we yeah we are raw coders
0:00:37
and this another um
0:00:41
session of a series called build
0:00:46
we are live every day on night
0:00:49
every day from 9 30 and
0:00:52
on the weekdays it's
0:00:55
9 30 to 10 30 and on the weekends
0:01:03
yes you heard that right it's 11 now
0:01:09
uh due to some situation being
0:01:13
changed um we had to do half an hour
0:01:16
less so if every weekend it would be
0:01:20
half half 9 to 11.
0:01:23
all right as you can probably see that
0:01:26
my co-host isn't here yet
0:01:30
uh he's run a bit late but
0:01:33
he will hopefully jump on as soon as he
0:01:37
all right so we'll just um
0:01:44
okay cool so but just
0:01:48
wait for him but in the meanwhile i'll
0:01:50
summarize you already yes today
0:01:52
so what we did was we
0:01:56
we were getting we were almost getting
0:01:59
name as a text but we wanted it as a
0:02:03
so what happened was that we um
0:02:08
managed to get managed to post
0:02:11
something on the back end
0:02:14
as a json object but it wasn't really a
0:02:18
board name it was something really
0:02:21
a json array memory for example
0:02:31
for an example it wasn't json array
0:02:39
basically ensure it wasn't what we
0:02:43
to see in the back end all right so that
0:02:46
wasn't our expected output but we
0:02:49
because something but the good part is
0:02:53
we managed to get something of
0:02:57
a data in the back end
0:03:00
but now we need to figure out as in how
0:03:02
to get that your board
0:03:04
name as in the string
0:03:14
json object in the backhand
0:03:17
all right so without further ado
0:03:20
let's get started i'll just open up
0:03:23
um actually i'll just share my screen
0:03:26
i've got my big screen here
0:03:31
yes so i'm just gonna do
0:03:34
open up i think actually i'll just share
0:03:39
my screen straight away so what i'm
0:03:42
gonna do is open up
0:03:49
terminal and i would have to
0:03:54
go to the api so workspace
0:03:59
right and this is that one
0:04:04
it's grown by enhancement
0:04:11
okay that's the middleware
0:04:15
right yeah so at the moment i wouldn't
0:04:18
at the moment i would need both so
0:04:22
we'll just get this
0:04:27
and then in another
0:04:30
vs code window i'll also open the api
0:04:34
all right so just bear with me for a
0:04:50
right so in another window let's get
0:04:55
a new window and then in this one i'll
0:05:08
all right so let's do that now
0:05:18
right cool so this is a
0:05:21
workspace that's that one and
0:05:29
so open that one up as well
0:05:42
and there we go put this
0:05:46
side by side so uh
0:05:55
okay just place my
0:05:59
mac a bit on the sides so i can see the
0:06:03
whole screen here don't need this
0:06:06
and this can come side by side perfect
0:06:10
so this is the middleware which is the
0:06:15
api here and this is our api
0:06:18
as in the end one all right
0:06:32
um so what we were doing
0:06:36
is we wanted to run this one first
0:06:41
middleware yeah so just to python
0:07:00
and that should run the local
0:07:08
there we go is from that so now i'll go
0:07:21
that's my tiger right there rawr coder
0:07:30
coder as well by the way
0:07:33
all right so i want to implement
0:07:46
show i want to open up the show account
0:07:59
do that one as well
0:08:07
now let's go into cloud formation
0:08:23
and this is our api right here
0:08:32
alexander gave me my birthday case oh
0:08:35
the guest says dude tomorrow's
0:08:42
tomorrow the 5th of august at 9 30.
0:08:50
by the way how you doing you're right so
0:08:54
this one is from the api
0:09:02
i need my lambda to see the actual
0:09:13
hello world yeah that's my lambda
0:09:28
the cloud watch and observe i will
0:09:32
request what does it give us from there
0:09:37
all right that's the monitor
0:09:44
all right so i'll go to cloud watch
0:09:53
actually where's the cloud oh here we go
0:09:56
cloud watch one so let's check that one
0:10:15
is this is the special guest
0:10:23
hello can you hear me yes
0:10:30
sorry about that that's all right um
0:10:34
of course tomorrow night as in
0:10:44
so yeah tomorrow you should stay mad
0:10:46
that doesn't mean you'll go
0:10:48
hey i'm telling matt to stay that
0:10:51
doesn't mean he'll go
0:10:53
even if it's tomorrow
0:10:56
yeah come on man she needed to stay mate
0:11:02
all right so what's happening um
0:11:06
so i'm just replicating where we were
0:11:09
of um where we were yesterday
0:11:24
so i've got the api here and then the
0:11:28
fetch api open here
0:11:31
all right just trying to do that um
0:11:35
so let's open this one up
0:11:40
and actually i need to close this
0:11:48
zero zero oh here we go perfect
0:12:09
why is this showing this ah
0:12:24
i got nuts today's bills and i just
0:12:28
to eat that nice one
0:12:31
brilliant inspired by you
0:12:35
becoming healthy now eh
0:12:38
yep all right i'm gonna just do that one
0:12:41
and see decline and then
0:12:44
open that one up in there and now it
0:13:03
oh okay that's fine
0:13:07
to string and then
0:13:11
it goes in as a string
0:13:14
okay that's no error
0:13:23
do you have a world version of the code
0:13:34
just you must be right because i
0:13:38
didn't really do i get pulled
0:13:41
yeah that's the older version i couldn't
0:13:45
yeah you you must be right updating
0:13:49
your local changes much my local
0:13:52
changes which local chain did i made
0:13:58
this card changes okay
0:14:12
now we can roll yep
0:14:18
see the client and
0:14:36
html don't really care
0:14:55
open the link on the other tab the
0:15:01
on the other tab which one is the new
0:15:11
wait what's your current code then
0:15:20
chest can you show that to me
0:15:33
yeah that's fine yeah i'm just curious
0:15:36
that you're not getting any error
0:15:39
um there wasn't any error if you can
0:15:43
remember from last night what was
0:15:46
was that we were guessing a json
0:15:54
right right now yeah
0:15:57
so so essentially we
0:16:00
got the object but the output wasn't
0:16:11
i'll try something searching something
0:16:26
actually let me check some in
0:16:30
if i do this exact thing in post fan how
0:16:32
does it come up as
0:16:35
yeah right did we do that before or no
0:16:39
we yeah try doing it actually um for
0:16:44
then we'll know that where is the
0:16:46
problem is it the api
0:16:48
or is it the middleware.js
0:16:52
okay if what's if postman works then the
0:16:57
yeah yeah exactly uh i'm just
0:17:01
gonna get some water but in the
0:17:03
meanwhile i'll actually
0:17:04
give you access to this um so what we'll
0:17:09
i'll take the middle there from there
0:17:15
and have you worked on the api before
0:17:19
yeah then before this project
0:17:24
sorry i didn't get you uh have you
0:17:27
as in the api things before
0:17:31
this project yeah but not express
0:17:34
ah right right okay
0:17:37
it's like restful or like i used
0:17:40
like synchronous apis ah okay cool cool
0:17:44
yeah all right so you can
0:17:48
have them middleware all righty
0:17:53
um back to normal things
0:17:58
let's let's do the postman thing first
0:18:44
let's see what happens
0:18:49
testing um nobody without a body
0:18:52
yeah i keep on doing the same mistake
0:18:56
again and again so if i do that in
0:19:00
adjacent no it's something
0:19:10
so board name if i do that in that way
0:19:15
it i think this thing is playing it
0:19:24
we're not simulating it at all in uh
0:19:30
we know yeah i think no problem that's
0:19:34
right yeah wait no no we're not
0:19:36
pretty sure can you check
0:19:43
closed it so i'll have to remember it's
0:19:52
we are doing it over here
0:19:57
oh right i'm just stringing finding your
0:20:03
sorry yeah that we are
0:20:14
actually what i'm gonna do
0:20:21
you do need to put dot board name
0:20:24
in the request.body thingy and then
0:20:27
jason stringify it
0:20:34
um right that's not
0:20:38
going to work i had um
0:20:41
to test it locally but then it wouldn't
0:20:46
with that endpoint
0:20:50
and then we can't really test the middle
0:20:54
yeah yeah true all right
0:20:57
cool let's do that
0:21:03
yeah building again
0:21:06
uh to be honest i can't wait for
0:21:10
guests because this is the time that
0:21:13
we're gonna choose for the questions
0:21:17
for sure yeah surely
0:21:23
all right i'm assuming um you got my
0:21:27
text off that's saying
0:21:30
what time should we post it isn't it
0:21:36
brilliant right so
0:21:39
let's deploy the app now my
0:21:43
guided deployments and
0:21:55
yes yes there we go
0:22:04
did you have a busy day
0:22:09
yes uh two lectures no classes oh sorry
0:22:14
um i was working on my portfolio um
0:22:18
i added actually youtube as well on the
0:22:21
ah that's brilliant i'll reveal that in
0:22:25
um and we didn't make gray on it
0:22:30
just like my personal website ah okay
0:22:35
um then we didn't make biryani yesterday
0:22:37
because we were out of some stuff
0:22:39
so i we went to calls
0:22:42
not sorry bullies don't go to course we
0:22:45
bullies and we bought stuff and now i'm
0:22:57
me if you still what i'll
0:23:00
tell you surely because as soon as you
0:23:10
yeah i did damn it's getting faster
0:23:14
see i've i've actually
0:23:17
changed my internet you did
0:23:20
no i'm just kidding
0:23:24
i mean this doesn't depend on your
0:23:25
internet oh yeah it does actually
0:23:27
it does i'm just curious we are in a
0:23:30
directory called get good name from
0:23:43
okay i'll go ahead and test it
0:23:50
actually i'll do this post again hang on
0:23:54
oh yeah actually you do the post first
0:24:00
testing post there we go
0:24:08
why did he take him this long now
0:24:13
ah okay that's not
0:24:16
the born names causing the problem
0:24:29
it's the board name that's causing the
0:24:36
that's literally not possible
0:24:42
that's literally what not possible
0:24:55
i did something that i wasn't supposed
0:24:59
now i want to see it
0:25:04
it says w isn't defined
0:25:13
where's the w really
0:25:17
she don't want to know
0:25:20
i fixed it already i saw it
0:25:23
we're on line 92 yeah
0:25:32
i'm like what i never typed w
0:25:36
and this is what happens folks
0:25:39
if you do something
0:25:43
in a rush and you've got fat fingers
0:25:48
they go everywhere on the cloud
0:25:52
you really like the letter w
0:25:59
i mean it's good w stands for win so
0:26:02
that's exactly what was gonna say but it
0:26:06
me a long time to come up and shoot all
0:26:12
there we go teamwork brilliant
0:26:18
i can't deploy that uh yes yes yes
0:26:50
to be created that's nearly there
0:27:01
showing us us all the events in
0:27:05
aforementioned as they happen there you
0:27:09
and there you go nice and accomplished
0:27:13
let's see if it's english
0:27:18
yeah nice that is promising to be honest
0:27:24
oh nobody party oh my god again
0:27:31
all right jason format uh
0:27:34
board name that's the old one there you
0:27:38
now now do two string to do this thing
0:27:42
wait it's already a string already a
0:27:46
base being jason stringified
0:27:50
so it has things around it yeah because
0:27:57
can we just remove these brackets
0:28:01
oh sorry actually can i just
0:28:04
test it in this way as in just
0:28:11
if this works now i'll eat my [ __ ] whole
0:28:21
let's see if probably it will work
0:28:27
no i really don't mind i'll eat my shoes
0:28:34
hang on what did you say
0:28:37
you're gonna eat i'll eat my shoe
0:28:41
okay now this has to work because i want
0:28:46
this will be the like this will be the
0:28:48
time when our channel takes off
0:28:54
cowboy come on work we
0:28:57
we want to go viral with carthage
0:29:04
i don't think so it'll work
0:29:07
to be honest i'm really hoping
0:29:15
so you should have been evolving
0:29:18
because you don't want to take a shoe in
0:29:22
and i'm hoping that you would because i
0:29:25
take the shoe in the mouth
0:29:29
you know it won't work come on
0:29:36
it won't work if i'm speaking the truth
0:29:54
on come on come on
0:30:05
to be honest it will be hilarious if it
0:30:12
that'll be the end of my youtube career
0:30:18
with going viral hmm
0:30:22
tell me to start the end of my youtube
0:30:27
raw json board name yeah
0:30:40
looking promising okay
0:30:46
now i was hoping you i was hoping you'll
0:30:48
make the same mistake
0:30:58
oh you gotta be kidding me shoot please
0:31:25
we are trying to make it work using the
0:31:27
middleware all right
0:31:33
that's not gonna go back on your word
0:31:35
i'm not getting cause i'm wearing slips
0:31:40
ah all right cool so that
0:31:43
api is working now so this is not going
0:31:52
there's something happening on the fetch
0:31:55
if you do a post now from your end
0:31:59
and see what we get
0:32:12
just one second i'm just seeing
0:32:20
do you want to share yours your screen
0:32:23
because i don't really want the
0:32:24
viewers to look at the as in i'm
0:32:28
not doing anything on the screen
0:32:33
so remember how i cleared my history and
0:32:35
stuff yesterday i got locked out of
0:32:37
so you'll have to do this now and take
0:32:40
for this stream just for this one
0:32:46
save again remember how i cleared my
0:32:50
yeah and that meant i lost all my
0:32:55
all the logins so i was logged into
0:32:58
streamia but i'm not
0:33:00
as the admin so i'm a guest
0:33:04
right right so you you'll probably have
0:33:07
log in first and then enter the stream
0:33:12
yeah that will do that tomorrow so for
0:33:13
now you'll have to add me and remove
0:33:15
my screen every time okay cool yeah
0:33:20
do that all right so i'm gonna just add
0:33:24
all right um i'm just seeing right
0:33:46
i'm just seeing how this should look
0:34:03
uh just give me two minutes i'm
0:34:07
i'm gonna get my water for me um
0:34:42
uh by the way i got a email from amazon
0:34:46
saying that my green screen is on the
0:34:53
that's pretty cool
0:35:08
do we want to try this one
0:35:12
actually i'll just try making this
0:35:22
i'll hear you if you're trying to say
0:35:49
it's definitely something in the fetch
0:35:57
i can't hear you then at all
0:36:12
jen are you in mute or something
0:36:19
how about now yes oh
0:36:23
apparently apparently i wasn't mute
0:36:27
interesting all right cool
0:36:31
um can you go back to the code
0:36:34
yeah once again i'm just gonna see
0:36:41
yeah i can there's something to do with
0:36:49
not this code um this
0:36:52
the stack overflow one
0:37:08
all right that's fine i thought they
0:37:12
using that curly braces but we were but
0:37:16
i i didn't see that properly
0:37:25
more than the same stuff
0:37:28
so i'm pretty sure it's supposed to be
0:37:30
in that way but if you go
0:37:34
back and run it and that line is
0:37:37
going another and i'll show you which
0:37:50
that's been the problem since the
0:37:57
go to the red cross
0:38:02
unexpected and um response to
0:38:05
jason unexpected hang on a minute
0:38:09
yeah i'm putting my thing on it so that
0:38:26
right our response
0:38:33
i'm using your my error
0:38:37
can the users i will just see my screen
0:38:43
are you sharing your screen yes i was
0:38:50
no it's fine so blob dot jason
0:38:54
maybe we need to get rid of those
0:38:57
curly braces american
0:39:06
no then it's return used in
0:39:10
this return yeah yeah
0:39:13
right then is it used because we are not
0:39:16
uh probably we want to use it then
0:39:28
you need to add me yeah
0:39:31
can you send me the code on private
0:39:35
is is it just ad return
0:39:41
and put a space there in on
0:39:57
which is inside the curly braces
0:40:01
should i leave the outside one oh no yes
0:40:07
return and then space yeah try
0:40:29
i'm okay that's not playing in here
0:40:46
that's not giving us anything either
0:40:50
what did you type in as the
0:40:55
um did it even add the board in the
0:41:01
i'm just gonna delete all the bolts okay
0:41:06
oh i'm sure you're screaming
0:41:09
yeah this one is that this one is in
0:41:29
i wanted to open in the new tab
0:41:49
scrum the db items and then
0:41:53
get rid of all the board names
0:42:02
i think this is the fixed timing
0:42:08
needs a battery charge
0:42:16
try it now all right
0:42:35
come on give me some loving now
0:42:39
i mean it's the same um we didn't you
0:42:41
know give us some loving
0:42:44
let's give us a syntax if that counts oh
0:42:47
wait do we need a semicolon
0:42:57
no we shouldn't need a semicolon in
0:43:03
actually start this bad boy
0:43:19
wow wasn't playing the error last time
0:43:24
yeah because you re uh you took off the
0:43:29
did that because in the last
0:43:33
one i didn't see the return still there
0:43:40
oh so is that one the the
0:43:43
bro the one browser
0:43:47
yeah is that the old version then this
0:43:51
is the new version
0:43:58
yeah it doesn't have return there
0:44:06
i need to clear my cache again
0:44:11
right you're right
0:44:30
now it's there yeah
0:44:46
where does he give the syntax error now
0:45:02
are you sure this response should come
0:45:04
here i have a feeling it shouldn't
0:45:06
can you check the code which you saw
0:45:10
i'll copy and paste it for you
0:45:14
hang on um my cuz this works better
0:45:19
so some has used jason
0:45:22
and the other person has said that this
0:45:26
works better but that's with text
0:45:33
i'll share my screen right
0:45:37
yeah thank you we want to learn how it
0:45:39
works rather than just like
0:45:41
yeah so either summer opaque
0:45:44
isolation the code
0:45:48
cause an error with empty response
0:45:52
doesn't accept responses with empty body
0:45:55
ah right i didn't know everybody
0:45:59
yeah so he has used this
0:46:03
one instead in my case this works better
0:46:08
so here's his response.txt
0:46:14
yeah but we already tried that right
0:46:19
oh but then then he parked it to jason
0:46:22
but that's the data object we are not
0:46:34
no that wouldn't work
0:46:38
um or maybe use uh
0:46:42
json.pass and then in brackets
0:46:51
probably i don't think so that makes
0:47:02
just um no no no no no because the
0:47:08
response is already json isn't it
0:47:12
key value pairs but respond the text
0:47:15
of it i can what i can do is i can do
0:47:19
and inside oh no i can't do that
0:47:24
hang on we need to keep looking yeah
0:47:29
body he is using that model of which
0:47:34
response then and then
0:47:38
then he's actually using function as
0:47:42
yeah we aren't using function i don't
0:47:44
know what function is like what is it
0:47:48
oh wait he's using function to uh now uh
0:47:53
we got it actually um
0:47:57
lots of good boy chose this headers
0:48:02
oh wait uh because he's he must have a
0:48:06
asking request jason string equals
0:48:11
jason return jason
0:48:23
um let's look at some other links i'm
0:48:33
as jason response to jason gives an
0:48:38
that might do it for us because this is
0:48:44
here we can search them i
0:48:55
oh see how he has done it
0:48:59
oh one second he's not taking the
0:49:03
text and then passing that text
0:49:09
jason in the function oh yeah we can try
0:49:14
i'll send you this code
0:49:18
all right actually um do you want to try
0:49:22
in your machine by pulling
0:49:26
by what actually yes send a code to me
0:49:35
are you sending it in private yeah
0:49:41
all right add me to the screen so just
0:49:44
check out the things with the things we
0:50:15
is that how it should look like
0:50:31
um you shouldn't be
0:50:34
copying and paste saying yes so you know
0:50:38
where from line 50
0:50:52
waste the other code uh
0:50:55
yeah the code that you have commented
0:51:02
yeah uncomment that
0:51:12
from re so highlight
0:51:15
return response.json
0:51:22
this one yeah until the
0:51:25
curly bracket only
0:51:29
but not including the curly bracket and
0:51:39
all right and remove the code or
0:51:43
commentary or whatever you want to do
0:51:46
and then just fix this syntax of it
0:52:05
why is it asking for a comma
0:52:13
no no no no hang on
0:52:18
on um so you know where it's called
0:52:22
but this then here i can't put then
0:52:24
inside of them can i
0:52:31
uh let's see but first i want you to
0:52:35
remove the one curly braces and one
0:52:40
round bracket at the end of 58.
0:52:57
wait where's this don't worry about the
0:53:00
it's fine yeah i'm just i'm just looking
0:53:04
where's this ending
0:53:09
oh they probably has to be one
0:53:12
round bracket off to the uh
0:53:19
perfect here we go right i'm just
0:53:24
this looks fine okay
0:53:32
yeah yep got another coin
0:54:01
i literally cleared the crash it's still
0:54:06
let me see the code
0:54:16
have you saved it first
0:54:39
okay let me open a new browser
0:54:43
let me close this one
0:55:29
probably just close the browser and
0:55:35
i can't close the whole browser oh wait
0:55:37
what i can do is i can open this on
0:55:53
thank you a new aurora
0:56:00
and where's the deploy
0:56:03
can tell me the link oh okay
0:56:08
i can see it myself okay
0:56:17
all right let's try this
0:56:23
oh i forgot about the safari problem it
0:56:28
it doesn't show the console is it
0:56:41
okay what happened there
0:56:57
all right it changed
0:57:07
no errors that's brilliant
0:57:10
no outputs as well
0:57:19
can you go into the aws console and see
0:57:22
all stuff did you get in the um
0:57:40
how do i go there uh why am i thinking
0:57:44
seriously how do i go to cloud watch
0:58:10
so the api is definitely working is just
0:58:14
fact that's causing a problem now
0:58:19
come on come on cloudwatch come on show
0:58:27
we should saw some 11 tier internet bill
0:58:39
come on then we'll go viral if we do
0:58:47
we would have gone viral half an hour
0:58:51
took the shoe in your mouth
0:58:57
not happening i mean that was just
0:59:03
see that's why i say never
0:59:08
expect something from the programming
0:59:13
because it can be betray you anytime
0:59:17
yeah that was the worst time to do it
0:59:23
actually can you say that
0:59:27
again because this my fat api might work
0:59:36
no risking it again
0:59:40
that's fine to be honest
0:59:46
all right all right let's have a look
0:59:54
no this is not right
1:00:00
four eight yeah 27
1:00:12
so this apparently is there
1:00:20
type buffer i think this must be
1:00:23
something to do with
1:00:28
how weird power singular json object
1:00:30
like something along those lines
1:00:32
yeah board name undefined
1:00:37
anyway let's come back tomorrow i guess
1:00:38
or i think we should work on it
1:00:40
and not work on this with 100
1:00:43
i guess yeah i think that
1:00:47
would be a really good idea
1:00:50
um well if you want to
1:00:53
try it and i'll try it as well i guess
1:00:55
in one time tomorrow
1:00:57
and but we need to get this working
1:01:00
at least um tonight or tomorrow night
1:01:03
till tomorrow night
1:01:05
yeah yeah because that would be my
1:01:08
goal because this is actually taking way
1:01:14
i expected it all right well
1:01:17
let's come back on it tomorrow night
1:01:20
yeah clearly and see how we go
1:01:27
all right guys thanks a lot for joining
1:01:31
been a pleasure watching
1:01:34
you guys support us as well and we
1:01:37
messing up and then fixing and then
1:01:40
and then fixing and um yeah
1:01:44
tomorrow don't don't forget to tune in
1:01:47
because tomorrow night
1:01:49
we've got our special get guests coming
1:01:54
we'll be doing a q a
1:01:57
session too so feel free to pop up and
1:02:01
questions it'll be some exciting stuff
1:02:08
yeah tomorrow we'll try our best to
1:02:11
get the board name as a json object
1:02:15
breaking into dynamodb um
1:02:19
and we can take you from this same time
1:02:23
do you want to ask something okay no
1:02:25
that was pretty good i'm really excited
1:02:29
andre who's a principal dave at seek um
1:02:32
would be joining us for a daily stream
1:02:35
um and we're looking forward to more
1:02:38
if you're interested contact us contact
1:02:40
me or contact them and
1:02:43
see if we can take this and yeah don't
1:02:45
forget to join tune in tomorrow at 9 30
1:02:51
perfect where every you are in the world
1:02:55
good morning afternoon and good evening
1:02:59
melbourne australia have a great night
1:03:03
we'll see you tomorrow same time same
1:03:06
and same task all righty um cool