0:05:09
hello how's it going
0:05:14
can you hear me zen
0:05:24
yeah my mix working
0:05:28
ouch so all this time i
0:05:31
wasn't my headset wasn't working
0:05:35
and i was just talking to myself
0:05:46
all right cool cool um welcome back guys
0:05:48
welcome back to another episode of bill
0:05:52
um to all those are near we are roar
0:05:56
stream from 9 30 to 10 30 p.m
0:05:59
est on weekdays and as it is a weekend
0:06:04
stream till 11 30 pm aest
0:06:07
so yesterday we made our fetch api
0:06:10
uh for the post method which meant that
0:06:14
our api was able to post
0:06:17
boards to our database um even with the
0:06:21
no course configuration and we
0:06:24
started to redesign the database which
0:06:27
meant that we were adding
0:06:29
both names um and today we are going to
0:06:31
try to make that work cool
0:06:34
what do you have to say then what do we
0:06:38
so first of all guys you
0:06:42
might be wondering that the intro has
0:06:45
come after five minutes of stein
0:06:49
the stream and that was because i
0:06:51
actually forgot to turn on my headset
0:06:53
and i i was thinking that i was
0:06:57
giving the intro and just
0:07:00
when when what i need to do in the
0:07:04
it turns out i wasn't so do apologize
0:07:07
for that and thanks lord kavik for the
0:07:11
introduction out as always um so
0:07:14
today we will be continuing from yes
0:07:18
today and just and just trying our best
0:07:22
get the board name inserted
0:07:25
in that mode as in
0:07:28
pass it to the api and then get that
0:07:32
in in dynamodb all right yeah
0:07:35
yeah that's good it would have been
0:07:36
funny if you stream two hours
0:07:45
and the worst thing is that i don't even
0:07:49
see our streams afterwards
0:07:52
so i wouldn't even know it is until
0:07:59
would have told me that uh saying
0:08:02
you know that day i can't hear anything
0:08:06
in these two hours
0:08:11
we could name it like special episode we
0:08:13
just code silently in the stream
0:08:16
true true yes silence
0:08:21
coding on silent yep
0:08:31
okay so um do you want to
0:08:38
part and um i'll focus on the
0:08:42
back end part so you can open that on
0:08:45
your end i'll take the middle there yeah
0:08:49
and um i can focus on the api itself
0:08:53
all right cool i'll just do that then um
0:08:57
middleweight announcement i don't need
0:09:05
i have a feeling it still is something
0:09:07
to do with the api
0:09:08
like in the backend must be
0:09:13
you must be right so there's only
0:09:16
ways in which you can do a fetch api
0:09:23
your rhyme must be something to do with
0:09:27
backhand and why does this branch said
0:09:30
dev yeah we under draft branch right we
0:09:33
made a staging branch
0:09:35
oh yeah yeah yeah cool according that's
0:09:40
thanks for writing me though
0:09:50
no i want to open this
0:09:54
folder itself because when sam bill was
0:09:58
i would have would be excluding
0:10:01
excluded if i go in that way that's true
0:10:11
i'm wearing aws shirt again so yeah
0:10:18
i like this one it's purple for some
0:10:20
reason there's not a lot of purple away
0:10:22
ah it doesn't look like
0:10:26
limited edition i can't even tell it's
0:10:30
it looks black um it's like navy
0:10:33
kind of color but yeah right right right
0:10:38
okay um index don't need that
0:10:46
um by the way i ordered my
0:10:49
green screen and the lightning as well
0:10:53
that's pretty cool nice so can't wait
0:10:58
all right i ordered a poster to put in
0:11:03
huh i ordered a poster to put on the
0:11:06
walls if that helps
0:11:08
okay the poster but where you
0:11:11
gonna put that though oh on the wall
0:11:16
so you you're gonna change your camera
0:11:20
as in face that poster then
0:11:23
not really i just started a poster i
0:11:25
just wanted to mention that because you
0:11:26
mentioned green screen
0:11:34
all right um so we did this
0:11:38
one but this one was coming undefined
0:11:49
i'm just gonna check what did we do
0:11:52
in the notes because
0:11:59
just thinking that would it be coming in
0:12:02
response or the request
0:12:06
um i guess we can hang on a
0:12:16
i'm gonna just google that part as in
0:12:27
like how to get the body from a fetch
0:12:53
cannot get post requests for the experts
0:12:55
in fact there we go
0:12:59
so this i'm new to suicide development
0:13:02
now i'm trying to save no diversity post
0:13:05
but my clients have been known
0:13:07
since the post okay yeah that's ours
0:13:12
we've done in that way but he has done
0:13:17
jason door stringified ah so yeah he's
0:13:21
key value pairs oh
0:13:25
okay guys interesting we can do that
0:13:30
i'm gonna hang on a minute and it's
0:13:33
doing red dot a not
0:13:34
body like it's not going in the body
0:13:38
it's just in the uh if you go down
0:13:42
um when it's doing console.log
0:13:46
it's not doing request dot body dot here
0:13:49
ah it's just going straight in there so
0:13:55
it's in the um request header anyway
0:13:58
it's not a body function
0:14:02
yeah yeah true are you using any saw or
0:14:07
body policy in your in you know it just
0:14:10
doesn't look like it
0:14:25
inside the app aha
0:14:31
interesting expert do jason have you got
0:14:37
yeah i'm not looking at one second
0:14:41
i'm just going here and googling
0:14:51
think i should do in that way
0:14:54
so you know how yep
0:14:59
actually hang on a minute
0:15:03
that's express so that would be in there
0:15:07
and get a particular board
0:15:23
board name probably
0:15:27
and then board name yeah let's try this
0:15:32
would you reckon yeah yeah
0:16:12
that one goes there body name
0:16:17
board name yeah okay i'm gonna deploy
0:16:22
all right yeah and see what way it does
0:16:33
i'm just trying to google something as
0:16:40
i'm gonna assembled
0:17:05
let me look at how the um
0:17:10
which functions look here
0:17:38
so far i feel like with the fetch
0:17:40
function we are going
0:17:41
about right um let's
0:17:53
i'm pretty sure it must be something to
0:18:05
did you add any other console.log
0:18:08
i didn't okay that's fine
0:18:20
when are we having the internet streams
0:18:29
i saw this video um
0:18:32
but this is deploying so the next time
0:18:34
we deploy i'll tell you about it
0:18:36
we should go ahead and do this so this
0:18:41
um there's this guy called nick white i
0:18:43
don't know if you follow him
0:18:44
he's a he's a programmer as well he's a
0:18:48
pretty good youtuber so he hasn't met
0:18:51
um and on the streets of london was it
0:18:55
they did a challenge they wrote a coding
0:18:56
problem on a whiteboard
0:18:58
and whoever could solve it um gets 100
0:19:05
that's a good idea but like not 100
0:19:08
yeah i don't know like jazz and votes or
0:19:11
something but like
0:19:13
it's some price yeah
0:19:17
it looked like so much fun just like
0:19:19
right linear search or like
0:19:21
i don't know let's do that yeah like
0:19:25
we should we should probably make a
0:19:26
video or something like this yeah um
0:19:29
cool glad to know your enzo
0:19:33
we'll plan that exactly
0:19:36
i think they'll be really really really
0:19:41
yeah for sure i'll send you the
0:19:44
original video i'm talking about yeah
0:19:55
um you might need to do
0:20:02
from the front end first in order for me
0:20:08
um i'm just wondering do you wanna test
0:20:12
um what do you call that like
0:20:15
database the new database design on
0:20:30
so you mean to say that when um
0:20:34
making sure that when something goes
0:20:37
in the body it actually gets inserted
0:20:40
in the database okay
0:20:43
yeah we can as a pretty good idea at
0:20:45
least the api is working then we can
0:20:52
yeah do you want me to land
0:20:56
either way yeah i don't mind
0:20:59
if you're already if you can
0:21:03
mine will take a while apparently as
0:21:07
all right um do we have postman
0:21:12
it's already open since yesterday
0:21:16
all right can you see it
0:21:23
now i can there we go
0:21:27
all right okay so in a body
0:21:34
in the format jason
0:21:38
all right so we have no name
0:21:42
don't forget to change the request type
0:21:47
oh yeah i'll do that um board name equal
0:22:04
oh okay forgot about json values
0:22:10
all right that should work and it's
0:22:14
post methods so let's try that
0:22:18
um let's try getting it now
0:22:22
oh wait that's my bad
0:22:34
so it's not inserting in
0:22:38
no either okay but then again
0:22:41
when we go down yeah it comes down
0:22:46
so this time we are
0:22:49
picking up the body so it should be
0:22:56
yeah true it's only this time so i don't
0:22:59
know what's the consistent way of doing
0:23:02
but we can try putting request dot body
0:23:05
and see if that works for now
0:23:07
okay i'll just change that one then
0:23:29
you know what i was thinking yeah
0:23:37
at least two three branches all the time
0:23:41
for example first can be as in the
0:23:45
master production branch and the second
0:23:49
one is a dev branch which is
0:23:53
as in same as production
0:23:57
but a dev one yeah and then
0:24:00
the third branch will be whatever we are
0:24:05
as in for example middleweight
0:24:10
adding headers or whatever yeah
0:24:13
yeah right no that's true as soon as we
0:24:18
do the implementation we can
0:24:21
merge that with that branch and
0:24:28
becomes say up to the working
0:24:32
quality then we can push the change from
0:24:35
to the production yeah for sure
0:24:38
that sounds good that's a um
0:24:42
really agile way to do it so that's good
0:24:50
oh until it deploys i'll show you the
0:25:08
yeah i saw this one but oh and this
0:25:14
said do you want to see it or just you
0:25:16
want me to send you the link
0:25:18
uh just probably send me the link
0:25:21
yeah probably all right
0:25:31
let me know when it deploys cool almost
0:25:35
and it's just deploying this deploying
0:25:47
what'd you do today
0:25:54
i i worked on the blog as in the
0:25:57
raw code yeah what's up with that blog
0:26:01
um i will send you a link but
0:26:04
i won't actually spoil the surprise
0:26:08
for the viewers at the moment uh but
0:26:12
yeah it's looking pretty cool as in
0:26:14
pretty simple and pretty cool
0:26:16
nice i like it is it deployed
0:26:19
just give it a hand yeah okay
0:26:36
i mean i do know the link but okay cool
0:26:40
that's fine it's pretty cool
0:26:50
um that one okay it's
0:26:53
deployed now so if you wanna test it
0:27:01
nice this is how it looks
0:27:08
i like how you're doing it
0:27:12
all right um yeah it's important right
0:27:15
and let's get all the place
0:27:25
um you haven't written
0:27:38
none and we'll get it
0:27:42
okay that's good nice so it does it
0:27:46
in that so it because it's in the body
0:27:49
then it does it isn't it so now we
0:27:53
need to figure out how we need to send
0:27:55
the fetch api to the body
0:27:59
ah yeah yeah let me try doing
0:28:02
what we are doing again so
0:28:06
for us this guy should be in double
0:28:12
i'll see how we have done it in um
0:28:17
the notes part and i'll probably send
0:28:21
for that i don't think this should be
0:28:23
shouldn't be stringified because we want
0:28:29
try that as well yeah
0:28:42
actually i'm just gonna
0:28:46
look at the mobile version of it because
0:28:49
i still haven't seen them
0:28:52
it's responsive um this is interesting
0:28:56
um there's no module found
0:29:02
simple http server you probably are
0:29:06
running uh what you're
0:29:09
are you running in the right folder i
0:29:12
think i have more than one
0:29:37
right just give me one sec
0:29:52
let's complain enhancement
0:30:07
oh he was looking yes
0:30:13
uh go back to the command
0:30:21
python minus a simple http
0:30:24
server this is interesting
0:30:29
i think i know what's the problem um i
0:30:32
did something yesterday
0:30:35
oh i thought monday come on just give me
0:31:16
so your command or depending on it can
0:31:22
go ahead and try this
0:31:34
okay i'm gonna try and build my end as
0:31:38
that works good does it work
0:31:58
that's a weird url i think it's
0:32:18
it's not even being passed
0:32:21
in the first place how do you know
0:32:25
because it shows in the response to have
0:32:28
which console.logged this one
0:32:32
yes it's not even being passed but i
0:32:35
feel like there's one added
0:32:43
yes after this one this this one's added
0:32:47
um is added but the board
0:32:51
name isn't passed in anyway which is our
0:32:56
okay that's what i'm talking about i'll
0:33:00
actually there's a simple solution
0:33:22
is type off okay right
0:33:27
all right i'll do alert
0:33:34
and i'll do another alert
0:33:48
no semicolon all right
0:33:55
oh i meant if you're placing it in that
0:33:59
in that one um then there wouldn't be
0:34:04
semicolon but where you're placing now
0:34:08
you should put semicolon due to best
0:34:39
oh i'm giving one sec i'll try this
0:34:58
just i think we might need to
0:35:01
this string of 5 because it normally
0:35:03
shows object object
0:35:06
if it's not json stringified
0:35:12
try that it's an object
0:35:41
yeah that's right yeah and it's objects
0:36:05
so what we are passing is um
0:36:09
i think what we need to do is inside you
0:36:14
oh that you are doing that aren't you
0:36:23
as you run it again just want to check
0:36:41
you want me to run it yeah
0:36:54
um do you know where
0:36:57
it says board dot board name
0:37:03
alert board dot bot name
0:37:07
remove that one and put that
0:37:10
in the body probably
0:37:14
in the body yeah so
0:37:18
just the board dot board name not the
0:37:25
so it would be body colon
0:37:32
i think i know where we are doing it
0:37:35
wrong i mean not wrong
0:37:36
can you show me the code once um you're
0:37:49
there um go where is it
0:37:59
right right right right right
0:38:03
can you console.log
0:38:13
and remove everything from there
0:38:16
except req do you know where there is
0:38:20
equal to req dot body let's
0:38:24
just let it be req that's it
0:38:28
um so i'll tell you what's happening um
0:38:32
i'll put a semicolon there yeah
0:38:38
so apparently for now our response is a
0:38:43
so when we are passing the
0:38:46
body we just need to pass a string right
0:38:51
so if we go ahead and
0:38:55
okay let's move this
0:39:05
and do this this will probably work out
0:39:11
okay let's try that one
0:39:15
yeah i think that should be fine um you
0:39:20
go ahead and deploy wait let me try it
0:39:21
once deploy that first
0:39:24
yeah i'll just try it once here
0:39:28
curiosity purposes it might give an
0:39:50
you might want to go ahead and deploy
0:39:55
called the same build
0:40:27
come on we gotta do that
0:40:34
do what the video which i sent you
0:40:37
yeah yeah oh just looking at that
0:40:42
like we don't want to do this near
0:40:49
what you mean i mean like you don't want
0:40:52
to do it this near any
0:40:53
proper university or else like
0:40:57
there would be students who would solve
0:40:58
it in like a second
0:41:00
yeah yeah true though like melbourne
0:41:03
central is a good place to do it
0:41:10
that'd be really as in yeah phenomenal
0:41:14
though cause it would actually elevate
0:41:18
channel too yeah that's true
0:41:22
this might get us like some attention at
0:41:25
least for starters but yeah
0:41:27
it won't be like costly as well to just
0:41:30
make a video like that
0:41:32
i mean yeah now um
0:41:36
well i'm thinking that probably we can
0:41:41
first and then people who actually saw
0:41:46
give them swags as well
0:41:49
yeah you can do that yeah i was just
0:41:52
wondering what kind of puzzles we can
0:41:54
put in like linear search is too easy
0:41:57
yeah yeah sure though like
0:42:00
you can have like fibonacci series with
0:42:08
well we can do one of those um
0:42:12
what was it called there was a coding
0:42:16
i did for an interview process i
0:42:19
can't remember what was the name of it
0:42:22
pretty difficult as in is it related to
0:42:25
number processing logics or
0:42:27
yeah yeah three numbers is it like
0:42:31
number buzz number
0:42:34
ah which one was it
0:42:39
was it based on sequences
0:42:46
oh man i can't remember now try
0:42:51
what was the puzzle
0:42:58
it was something to do with
0:43:07
the number of armies
0:43:12
and countries oh okay
0:43:16
so it was like a specific coding
0:43:23
me around how many four days at least
0:43:27
to figure out it was that long
0:43:31
as well okay that's done
0:43:36
you wanna test it i do
0:43:48
come on baby come on work for us
0:44:11
oh wait we didn't post there were 10
0:44:16
so didn't even personal
0:44:20
string why does it show string
0:44:24
because it is a string for now uh so you
0:44:27
didn't uh remove that
0:44:30
console.log statement for
0:44:34
type of did you yeah let me try posting
0:44:37
it from here give me one second
0:44:54
i don't think it would work at this
0:44:56
moment you know why
0:44:58
brother because in the api
0:45:01
i've got that board
0:45:04
underscore name to request
0:45:12
oh remember you said
0:45:16
to me the remove everything but the
0:45:23
but this isn't this the request
0:45:26
that's it like hang on i'm gonna
0:45:34
and check what exact input
0:45:37
as in the output do i get
0:45:40
yeah and by the way i've
0:45:43
already sent you the um
0:45:47
i am user for the editor
0:46:26
come on come on come on
0:46:33
whoa that's way too many hello funk
0:46:37
is this the one one ee
0:46:40
nope that's not the one is n zero
0:46:49
lambda function hello
0:46:57
and zero here we go
0:47:03
let's see what our log comes up as
0:47:11
okay cool so this is the incoming
0:47:14
message that we have all right
0:47:34
everything status code
0:47:38
uh but your this is the url
0:47:42
which is fine address destroy
0:47:46
client status code null
0:47:53
that's fine that means it executed
0:48:00
yeah that's what i was thinking
0:48:16
doesn't give us anything
0:48:20
syntax error oh yeah
0:48:25
that's the last one ignore this one
0:48:29
see the previous one
0:48:42
this isn't there is one
0:48:45
which is yeah don't look at the latest
0:48:47
where i'll do one more than wait i'll do
0:48:50
okay just give me one second
0:48:55
here look at the one which i did just
0:49:11
did you get a new one
0:49:14
yeah i got a new one but i didn't get
0:49:17
information in it hang on
0:49:22
refresh this again
0:49:27
yeah no information hang on i'll go back
0:49:31
yeah i need to put my mac in charge i'm
0:49:43
this one wasn't it yep
0:49:48
right yeah this is the one but
0:49:52
it didn't come up with any error wow
0:49:58
she should have came up with the console
0:50:07
actually i'm gone i'll go back
0:50:13
just give me one sec i'll be back one
0:51:15
okay i didn't can you do another one
0:51:21
uh you making me hungry
0:51:24
sorry i'm sorry i'm gonna get my nuts
0:51:36
for those of you wondering what i'm
0:51:41
butter chicken with rice
0:51:48
and it's pretty good so
0:51:54
what are you eating zen i'm eating
0:51:56
butter chicken and rice
0:51:58
uh i'm eating my nuts
0:52:09
have you had butter chicken though ever
0:53:03
okay i'm gonna do another request
0:53:16
you were having dinner so that's fine um
0:53:19
yeah so do you want me to do it through
0:53:21
postman or do you want me to
0:53:23
through the app anyhow and anyhow
0:53:48
so it's not even posting anymore
0:53:52
okay cool no no that's fine
0:53:57
um you want me to change up my cpa
0:54:02
no i think i go i wanted
0:54:20
next list is undefined
0:54:31
that's our host origin yeah
0:54:49
oh i don't have an intel mac huh
0:54:53
that's disrespectful it thinks i have an
0:54:59
what do you mean i'm just kidding it
0:55:01
says intel mac osx
0:55:04
and i don't have an intel one
0:55:08
ah you're rich man
0:55:13
i voted for cheaper though good friend
0:55:33
we have this problem here
0:55:39
it's not ringing here at all can you do
0:55:45
another post but i will revert the
0:55:49
changes back to where it was
0:56:06
if the issue this issue still pertains
0:56:09
um go on local testing yeah
0:56:16
and then this would probably be the
0:56:19
last time that i'm deploying yet
0:56:23
yep if it doesn't happen
0:56:26
then i'm not gonna use
0:56:30
sam for testing that's true
0:56:56
are you going to the gym these days
0:57:01
the gyms just opened nothing
0:57:05
just today oh so yeah
0:57:08
just doing home workouts at the moment
0:57:12
honest that's pretty cool how are
0:57:16
nah i can run if you want but
0:57:22
never got into jimmy is
0:57:28
i love it man yeah and then
0:57:32
the kind of job that i've got and seeing
0:57:36
it's kind of i think that it's kind of
0:57:40
for me but i feel like i
0:57:44
jamming is really stressful for me like
0:57:49
just like push yourself and it's just
0:57:50
really hard to motivate at some point
0:57:56
you you probably have to have a goal
0:58:00
first and a plan and then work
0:58:03
towards that as in if i do it
0:58:07
in that way then i actually wait every
0:58:11
day to actually hit the gym oh
0:58:18
motivating yeah that's true
0:58:22
that's actually a good idea but
0:58:26
if you don't have a goal and you don't
0:58:29
where you're going or or what you're
0:58:33
aiming at then it's just a waste of time
0:58:37
that's true i feel like i never got
0:58:41
like like a trainer or something to like
0:58:44
or people who around me who gym to kind
0:59:23
uh the url okay that's right oh yeah
0:59:32
okay the count increased
0:59:38
can you go back to that one
0:59:41
just by still not inserting it isn't it
0:59:46
we just need to see what's in the
0:59:50
when it's coming to the api
0:59:54
so if you can like control the log the
0:59:58
that will be ideal
1:00:05
so he's saying in this way
1:00:11
yeah because if at any part of this
1:00:15
request object we have the board name um
1:00:20
yeah that's like that's literally very
1:00:24
then remember how email board name
1:00:28
a global variable is it the same board
1:00:36
no it's not yeah okay
1:00:44
where am i even declaring this
1:00:54
declaring the board name
1:00:58
i think it's in the request ah yeah
1:01:01
yeah that's fine i'm just being
1:01:08
so what i'm going to do now is
1:01:13
and look i don't want yeah deploy
1:01:16
locally but how did i
1:01:20
how did i choose to do that um
1:01:25
remember hang on and we're using
1:01:29
dynamodb isn't it yeah make the table
1:01:35
yes that's the way
1:01:39
so what i'm going to actually do is go
1:01:50
download uh what am i doing
1:02:01
and that was dynamo ep
1:02:09
here we go and there was a command
1:02:12
it must be way behind
1:02:26
actually look at it
1:02:32
oh wait oh yeah that's mine
1:02:36
oh yeah i know what you are going to say
1:02:43
here we go look what it was something
1:02:58
i love pasta isn't it
1:03:11
okay go back to the terminal and run
1:03:16
and see if that table is still there
1:03:20
yep it's still that cool um i think we
1:03:24
need to change the
1:03:25
table name in the code ah yeah true
1:03:30
cheers for pointing that out
1:03:39
okay that one's there
1:04:01
yeah it's working when we are sending it
1:04:07
the body so we just want to see what's
1:04:10
in the request object but
1:04:11
that's probably it
1:04:15
when we send through um
1:04:19
to the event api okay
1:04:26
take this url and use
1:04:30
this one to do the test
1:04:35
but how would that work then you need to
1:04:43
i'll push the latest code base to github
1:04:47
okay cool yeah we're doing that way
1:04:52
yeah i'm just pushing one second
1:05:32
why doesn't it work for me
1:05:39
but it's not the star no it doesn't work
1:05:43
for me scrambler oh no
1:05:46
is it even the string
1:05:56
it says that i'm pretty sure here
1:05:59
scrambler that's interesting
1:06:04
it always used to work for me
1:06:15
i mean it's pretty convenient though um
1:06:17
if you can try resolving it
1:06:19
because when you have like auto
1:06:22
generated big file names
1:06:41
please commit your changes
1:06:48
was working on it before you
1:06:51
um i don't think you uh can you ignore
1:06:56
i can i just want to make sure
1:07:03
okay yeah that's fine don't worry about
1:07:06
i'll just discard my changes
1:07:14
and it should come now boom all right
1:07:25
actually why do we even have this here
1:07:32
okay board board and
1:07:35
this is the board call
1:07:38
so we want to do is test this one isn't
1:07:47
basically we need to control the log
1:07:52
wait you need to change the url did you
1:08:22
all right there we
1:08:26
go that's our charm now
1:08:38
server ah now that won't work
1:08:57
already news ah goodness gracious me
1:09:00
what's that what am i doing it's already
1:09:04
apparently localhost
1:09:09
where am i using it um
1:09:21
i am try using the command which i use
1:09:25
it with which use ipv6
1:09:30
what was that i'll tell you go on one
1:09:46
all small dots for
1:09:57
we are my running local house
1:10:01
already are you inclined or not
1:10:04
i don't think you are i'm knowing client
1:10:08
oh i wasn't client no you weren't
1:10:28
so okay it's already in
1:10:32
juice hang on as you figure this out
1:10:38
i put two too many on
1:10:48
don't need this either
1:10:51
no it's not it's fine
1:10:55
i don't feeling it means that dynamodb
1:11:02
really but uh let's try it again
1:11:06
simple ah a thousand
1:11:17
that's using you're right
1:11:21
but then how do we
1:11:30
but this one is deploying another port
1:11:32
try it again let me try it again
1:11:35
um cd into client first
1:11:44
which port is it going to
1:12:22
i think you can go ahead and specify the
1:12:36
so self-serve address
1:13:21
why do i change the local port because
1:13:31
uh-huh so it's actually giving the url
1:13:36
api login it doesn't matter
1:13:40
you need to have calls enabled for this
1:13:58
um i don't care whether it been
1:14:02
accepting yeah that
1:14:04
that wouldn't work for us because we are
1:14:08
using that or have you tried to for the
1:14:12
ah in the fetch parameter full
1:14:25
that's interesting
1:15:13
try googling the error
1:15:17
i'm pretty sure that is the reason why
1:15:20
it's coming because
1:15:21
they already have dynamodb there
1:15:26
maybe and try running it huh try
1:15:29
swapping dynamodb and then running
1:16:02
you know how how you oh
1:16:05
well yeah it gives me a very
1:16:09
very mixed impression at points
1:16:14
that was a different mode the other day
1:16:21
all right so this is the thing that it's
1:16:25
we need to deploy it somewhere else
1:16:28
but look i can just use sam probably
1:16:31
yeah let's just use him yeah it's just
1:16:35
not the time at the moment yeah
1:16:47
yeah okay cool let's just go for sam and
1:17:15
okay so that one was there
1:17:24
you know what i'm gonna do i'm gonna do
1:17:28
params instead all right yeah and see if
1:17:55
day after tomorrow we hit 20 episodes
1:17:58
wow incredible isn't it yeah
1:18:05
see how the time flies i know right
1:18:08
actually i'm gonna have a bit of chicken
1:18:17
oh as soon as he went and tip didn't
1:18:24
nice so i'm just waiting here i can't
1:18:27
even deploy it no i'm just i'm just
1:18:28
going to look at it
1:18:31
yeah i'm back i'm back come back as soon
1:18:34
it just like stopped building i'm like
1:18:37
what do you want to do look at it
1:18:41
actually you know what i'm gonna do
1:18:45
that i'm gonna do that because i'll i'll
1:18:48
do the fetch api from here
1:19:04
okay my food time yay
1:19:13
is this your dinner
1:19:22
a thumbs up will work
1:19:37
can you hear me coffee yeah i can yeah
1:19:49
this is my snack oh
1:19:56
that's a very heavy snack
1:20:01
that's my dinner i guess
1:20:05
i'm just looking at the weather tomorrow
1:20:08
yeah it's pouring down isn't it
1:20:11
right now it is tomorrow it'll be fine
1:20:20
don't try that all right
1:20:23
do you want me to share mine yeah
1:20:30
i'll just go to the code again um your
1:20:32
looks fine either you are the same
1:20:36
yes okay all right
1:20:46
interesting i commented that one out
1:20:54
fine um yeah let's see what excuse us
1:20:58
we're not using this
1:21:14
so good part is this is working though i
1:21:15
don't know if you see
1:21:17
so if i comment this right now though
1:21:21
we'll see we'll see one thing and if
1:21:23
that happens i'm not too sure as well
1:21:25
so you know how this returns yeah
1:21:29
i'm pretty sure this won't happen this
1:21:34
with a comment in the function test
1:21:43
oh come on buddy you're using that
1:22:13
yeah that's not cool
1:22:37
see it won't return now but
1:22:40
let's see what happened to the tv
1:22:54
i mean that was expected but we need to
1:22:57
see what's in the console.log
1:22:59
for lambda i'm gonna go and have a look
1:23:14
so it's probably the other one
1:23:21
52 yeah 52 this is the one
1:23:26
right um 57 yeah this
1:23:30
one we're looking at this one i would
1:23:35
time is before right now so if that
1:23:39
huh no no that's the right one pretty
1:23:47
you know king socket connection
1:23:52
that's not the headers is there
1:24:01
okay that's fine that's where
1:24:08
content length seven
1:24:17
that's six i don't know what that is
1:24:25
bored no it's still showing us no stairs
1:24:35
body is coming as the buffer
1:24:40
next original url pass
1:24:44
url path name is body
1:24:48
ah we might be doing the wrong path
1:24:53
what uh really hey trav
1:25:08
that's our response which one is it
1:25:11
oh can we get the console.log where is
1:25:16
this is console.log all of it
1:25:20
the whole object yeah oh
1:25:24
right you know how i did
1:25:27
request right yeah that's true
1:25:31
that's everything there so
1:25:34
just get over there with where it says
1:25:42
that's what finding us doing the process
1:26:02
can you do me a favor then do a control
1:26:15
doesn't have anything
1:26:18
you mean this moment coming because i
1:26:22
would have expected it to be present in
1:26:30
do in the code and deploy again
1:26:33
and do something else um let's do
1:26:38
uh yeah request dot body only
1:26:43
yeah let's print request dot body here
1:26:47
actually what i'm gonna do is do them
1:26:51
yeah and console.log
1:26:54
request.body.boardname and
1:26:56
request.parents.good name
1:27:09
and can you consider the request or body
1:27:22
i need my wall as well
1:27:26
yeah is that gonna help
1:27:33
i sh it was coffee i
1:27:36
would have said convert
1:27:40
caffeine into code
1:27:43
but i can't even say that now because
1:27:51
i'm starting to yes
1:28:10
that's pretty good that'll help us a lot
1:28:23
where's this crystal body
1:28:44
all right oh left employee okay
1:28:51
welcome to one are continuously
1:29:50
all right let's just get some water
1:30:02
that's deploying won't take long
1:30:06
and it did not take long okay i'll
1:30:10
share my skin and i'll go ahead and test
1:30:14
there you go i'm back in action
1:30:17
all right um so that's deployed then
1:30:20
i'll just go ahead and test it on my end
1:30:41
wow it's really misleading to be honest
1:30:45
no i didn't mean that i mean i i didn't
1:30:49
i was like what happened where is he
1:30:58
um i'll need to deploy it again
1:31:17
and let's see this let's see
1:31:22
we could okay i'll go back in
1:31:25
in lambda and i'll check
1:31:36
it is posted but nothing good news no
1:31:43
no okay this one should give us a lot of
1:31:52
too hopefully okay
1:31:55
ah so it's in the body
1:31:58
no no that was easy
1:32:02
see that it was in the body
1:32:05
and you know what's happening i was so
1:32:08
close so it is a text
1:32:10
it is a text yeah um wait wait wait
1:32:14
let's let's stick with this and let me
1:32:23
are you watching sorry let me pass a
1:32:26
json object one second
1:32:28
okay this version is fine of the app
1:32:50
are you sharing your screen oh i'm so
1:32:53
sorry can you add me
1:32:55
uh yeah yeah hang on a minute okay here
1:33:18
actually i might have to change the
1:33:26
well either because
1:33:30
getting it from the body and at the
1:33:33
telling you to bring you from the params
1:33:38
but this is interesting
1:33:44
why is test rc not going anywhere
1:33:47
even if i do a hard reset
1:33:51
and this is only incognito
1:33:55
do we again i actually sh um
1:33:59
stop and install again
1:34:13
to the right server
1:34:32
oh my fine i'll just do it
1:34:36
shouldn't make any difference
1:34:51
yeah an object that's fine
1:34:55
okay and now so what changes
1:34:59
did you do i made it an object
1:35:08
okay cause a problem
1:35:11
this should cause a problem because our
1:35:15
header says that the response is a text
1:35:17
type but what what's the next thing
1:35:19
we'll try doing is
1:35:20
change the response header type to json
1:35:24
probably need that we might have more
1:35:26
than one information
1:35:32
more than one information about what
1:35:36
like like right now we can just pass
1:35:39
one string just board name but what if
1:35:43
characteristics of a board like color or
1:35:46
size or i don't know yeah
1:35:53
so we can't pass that to text we need a
1:35:56
json object to pass
1:35:59
different um informations
1:36:04
yeah yeah right i'm with you now yeah
1:36:08
cool that makes sense
1:36:11
so i'll just go and um now this is what
1:36:14
you got right now once
1:36:17
see what you got right now in the lock
1:36:22
in the lambda log yeah
1:36:27
well this is the current one the new one
1:36:30
oh so you did get an object yeah so
1:36:37
can't we print that object um you can
1:36:40
just string it by the object and then it
1:36:44
show the actual object itself so do you
1:36:46
want me to send it json stringified or
1:36:48
you'll do it on your end
1:36:50
um i don't think i could find it jason
1:36:54
okay i'll do my and then hang on a
1:36:57
yeah all right okay
1:37:04
cool okay i'm gonna
1:37:08
so we don't i'll still
1:37:11
keep all these console.logs yeah yeah
1:37:21
i think we are pretty close together
1:37:34
oh my god you have no idea how much i'm
1:37:37
learning about etch api
1:37:41
as in especially starting brand new
1:37:44
on this one no percent
1:37:49
i don't know about you but at the
1:37:50
beginning i didn't even know what
1:37:53
fair shape yeah was until i i actually
1:37:57
read about it i heard it from you the
1:38:05
i heard it from paul because he actually
1:38:13
and i'm like okay cool no prob i will do
1:38:17
but now i can tell why it's
1:38:21
really efficient though yeah that's true
1:38:30
if you want to test again i don't know
1:38:33
if you want to test it again
1:38:35
yeah i am one second
1:38:40
i don't think i need to change any of my
1:38:43
you shouldn't have to
1:38:49
all right um that's fine
1:38:53
okay you got it okay now
1:39:08
now technically we should see a board
1:39:20
that's interesting i think i was wrong
1:39:25
that is pretty interesting
1:39:33
data hang on i should stringify it as
1:39:38
probably yeah do that i think that might
1:39:41
the reason why it's causing this you you
1:39:44
don't need to really blow it
1:39:57
you can see my screen right yeah thank
1:40:10
i'm here i don't have a
1:40:14
good feeling bald let's see
1:40:25
um port name board number one name
1:40:35
okay is it passing the same data in the
1:40:38
hang on is j s a o
1:41:02
that's right you're right that's the
1:41:07
yeah because it's thinking there's
1:41:09
conveying everything to numbers now
1:41:13
did the last one have um
1:41:25
that's one two three four five six seven
1:41:28
ten down two fifteen
1:41:49
um nine plus seven that's sixteen
1:41:53
so yeah i typed in json.35
1:41:58
oh it can see my screen
1:42:03
you know what um where you do
1:42:12
you do response.text
1:42:16
yeah i should do it this is jason
1:42:19
instead and see if that makes any
1:42:25
i don't feel fulfilled but all we can do
1:42:30
yeah i mean we have to go ahead and make
1:42:32
it a json type response
1:42:35
yeah that's true though
1:42:39
let's see what you get
1:42:54
i can't have to go back
1:42:58
and then see it what happens 10
1:43:19
i'm just surprised that it works because
1:43:24
oh wait it doesn't work nevermind
1:43:28
um it didn't go through
1:43:32
so response store jason doesn't go
1:43:37
but it should we are just not writing
1:43:41
end lines properly probably but
1:43:44
what what should we do is let's leave it
1:43:48
and change the code to allocate the
1:43:52
so assign board name to request.body
1:44:20
in that way yeah and delete all the
1:44:23
yes that should be fine
1:44:29
right let's deploy this and see this
1:45:11
what i'll do is um as i told you i have
1:45:14
group meeting um so i might
1:45:18
leave you know this if that's okay yeah
1:45:21
that's fine yeah because i'll do um
1:45:30
do you want to end the scene what are
1:45:31
you going to keep working after now uh
1:45:37
on that because i don't really i don't
1:45:40
viewers will come at exactly
1:45:45
half lemon so i don't really want to
1:45:48
them the impression that i would
1:45:52
left early yeah i'll just keep working
1:45:55
until that time and do you want to
1:46:00
test now all right showing my screen
1:46:07
don't need to redeploy sorry the
1:46:16
let's start see okay this time it should
1:46:21
oh wait i think i didn't need to
1:46:29
or maybe i don't it works um
1:46:34
i'll just go to postman and see what we
1:46:44
okay what didn't work
1:46:48
no i think it's probably because it's
1:46:52
c it says pre jason
1:46:58
on the postman oh wait oh
1:47:01
that was my bad that was my bad
1:47:32
okay now we'll have a board which will
1:47:49
hopefully it's the word catholic
1:47:57
i think um text is causing a problem
1:48:01
it's getting everything that's jason
1:48:11
so if you go back to postman
1:48:14
yeah you know how he says there
1:48:17
as in pretty and then jason
1:48:30
does it show anything last one's still
1:48:39
that's interesting all right
1:48:46
hmm do you want to show me the api once
1:48:56
yeah there you go all right
1:48:59
that's the body there that's the board
1:49:18
awesome create new board that one is
1:49:22
board name is body
1:49:31
um okay if you want you can
1:49:36
go cause she's yeah i'm gonna kill you
1:49:43
what do you think we should do right now
1:49:49
uh about the api or
1:49:53
in terms of you have to go
1:49:57
oh no what the api ah okay um
1:50:01
i'm just gonna do this
1:50:04
console log the board name
1:50:11
can you console.log the type of board
1:50:15
name as well please
1:50:33
actually i'll just go at 11 30 only they
1:50:36
can do something without me yeah
1:50:43
i'm just coding a wise man commitment is
1:50:52
really glad you're you've realized that
1:50:56
because once someone said it to me
1:51:00
and um i'm just using that
1:51:03
someone's quote as well i think i don't
1:51:06
know who that someone is
1:51:09
you must know it i'm pretty sure
1:51:14
uh so that one that one
1:51:17
and then they chose there
1:51:20
i'm just gonna print out this as well
1:52:04
she just reminded me miss
1:52:10
about something funny yeah
1:52:13
the phrase commitment is a commitment i
1:52:16
i'll tell you the offline okay
1:52:24
all right come on api come on give us
1:52:32
we deserve it and she know that as well
1:52:40
i mean it did give us loving it's just
1:52:42
that it doesn't work
1:52:45
as in when i self having
1:52:52
yeah that's the only kind of loving
1:52:54
which you didn't get
1:53:01
we got i guess we got many
1:53:04
small lovings but no
1:53:13
we got a few dates but no followings
1:53:17
yeah nothing and no one
1:53:20
agreed to come on the second day yep
1:53:28
okay cool uh try that one now
1:53:31
on it oh do i need to redeploy
1:53:37
no no you should shouldn't have to
1:53:47
coffee okay you gotta do that because um
1:53:51
i think uh i point i just
1:53:55
noticed one other thing that we might be
1:53:59
okay i'll test this first and yeah yeah
1:54:02
see if it takes a string and i'll go
1:54:06
there and the board name
1:54:11
yeah it didn't work in the database but
1:54:20
no i need to get the other logs
1:54:31
uh-huh so that's empty
1:54:34
it's coming as uh what i should have
1:54:37
is i should have data
1:54:42
uh-huh okay so it didn't come in
1:54:58
hmm um yeah i'm here
1:55:08
this why are we getting object
1:55:15
it should be a string
1:55:21
yeah and board name shouldn't be object
1:55:23
should be a string
1:55:26
well it shouldn't be a stream because
1:55:29
we are doing a text and text isn't a
1:55:34
but we are assigning it directly to
1:55:38
which should have a string
1:55:42
you know what i mean no um
1:55:46
in the table uh in the params
1:55:49
in the item code rewriting board name
1:55:53
and this is an object
1:55:57
but it should be a should be a string ah
1:56:00
right right right yeah
1:56:21
body how about if i do this instead
1:56:26
ah no that wouldn't work
1:56:32
how about we stringify it i don't know
1:56:34
why it's an object
1:56:38
it shouldn't really be an object should
1:56:41
no like just 15 minutes ago it wasn't an
1:56:46
wait wait one second one second um then
1:56:51
let me see what am i getting
1:57:01
okay now i'm passing a string for sure
1:57:05
so if you're passing a string
1:57:09
hmm then why am i guessing an object
1:57:18
okay that's wow seriously
1:57:21
yeah that is a wow
1:57:25
um right so let me go
1:57:38
um do you know stringify request.body
1:57:43
and do a bunch of console.logs for
1:57:45
requested body as well
1:57:53
but stringify means that it will still
1:57:56
just we would be able to
1:58:03
yes um but then how do we convert text
1:58:13
i'm going to make it yeah also next time
1:58:17
do a console.request.body as well
1:58:30
oh don't think i thought so
1:58:33
this was this but it wasn't showing me
1:58:44
still open the link and see if it if to
1:58:46
have given any examples
1:58:59
okay it's 11 30 you might have to wrap
1:59:02
all right that's it we can
1:59:05
call it a night now
1:59:08
um all right i'll just stop
1:59:12
sharing yeah sorry
1:59:21
oh yeah um yes yeah sorry about that i
1:59:25
go guys uh we can't go over time today
1:59:28
weekend stream so it's two hours anyway
1:59:32
yeah it was good fun um at least we
1:59:34
figured out what's coming in and what's
1:59:36
and we're not getting any errors so
1:59:40
uh yeah see you tomorrow at 9 30 uh what
1:59:43
do you have to follow
1:59:45
same place same time same task
1:59:48
but a little ahead now
1:59:51
yeah this is brilliant all right guys
1:59:54
uh where are we you are in
1:59:57
in the world have a good evening good
2:00:01
good afternoon but in terms of melbourne
2:00:04
have a great night and yeah we'll see
2:00:08
tomorrow same time good night guys