0:00:26
what is going on guys welcome back to
0:00:29
another session of buildbreak fix um
0:00:37
co-host is running a bit late um
0:00:43
continue and hopefully can make it in
0:00:47
just so you guys know that we are raw
0:00:49
coders and we are online streaming every
0:00:53
day from 9 30 and weekdays
0:00:57
until 10 but on the weekends it's
0:01:05
feel free to join us and um yeah
0:01:09
we really look forward to your um
0:01:16
to you guys coming and joining us
0:01:19
and um so just a bit for recap uh yes
0:01:23
today what we did was we did um the
0:01:29
we fixed the cause error that
0:01:32
oh we fixed the cause error that we were
0:01:34
working on which was
0:01:36
to do with the posts um the board name
0:01:39
it wasn't posting to um
0:01:45
to the back end um so we
0:01:47
managed to finish that so today what we
0:01:52
going to be doing is implementing um
0:01:56
a function called get board
0:02:01
middleweight which would then interact
0:02:05
get bored name in the
0:02:08
backend express app all right
0:02:12
that being said let's get started and
0:02:15
have some fun coding alright
0:02:20
just so you know that i've got two two
0:02:22
screens here so if i'm
0:02:24
looking in this direction that means
0:02:26
that i've got my big screen here but the
0:02:29
camera is here so i really hope
0:02:34
and um just so you know that i've also
0:02:37
ordered my green screen which is
0:02:40
hopefully coming very soon so
0:02:43
when that happens i'll be using the
0:02:45
camera that's on my big screens so
0:02:48
we like we are facing
0:02:54
we'll be facing in that direction all
0:02:58
so you can straight away see my um
0:03:01
see me alright cool so now with that
0:03:04
said i will share my screen and
0:03:10
all right so this is
0:03:16
amazon console what i actually really
0:03:19
want to do really quickly is just
0:03:23
make sure that the board
0:03:34
from the front end to the back end so
0:03:36
it's actually been posted
0:03:38
so what i'm gonna do is
0:03:48
all right so i'm gonna
0:03:54
middleware which is this one and let's
0:03:58
app so i'll just see the client i'm not
0:04:02
entirely sure you get you guys can see
0:04:07
so i'll just zoom in a bit
0:04:10
so you guys can see the code
0:04:12
right cult brilliant all right
0:04:15
so now what i'm going to do is see the
0:04:29
server all right so what they're
0:04:35
run the app on local server so
0:04:39
if i just open up the browser
0:04:50
apps homepage i would say
0:05:13
um what's happening
0:05:41
let's actually see if this even works
0:05:51
right because for some reason based on
0:05:53
experience i doubt it will work
0:05:56
but i'm pretty sure we fixed this error
0:06:02
uh that one is our
0:06:15
it's giving us error again
0:06:35
that's a bit unexpected actually hang on
0:07:04
just want to check because it's not
0:07:06
posting the data again
0:07:08
which is kind of a problem
0:07:11
because it was doing it previously
0:07:14
but i'm not entirely sure why you're not
0:07:16
doing it now ah okay i might not have
0:07:24
that would be my fault
0:07:30
get get do i get pulled
0:07:33
if i get any lace code
0:07:36
self dream couple name
0:07:42
okay so i'm basically in in
0:07:44
some other branch which
0:07:47
is why would be causing the problem
0:07:56
come on delete middleware okay
0:08:03
implementation actually
0:08:05
middleware implementation board name and
0:08:10
let's try that uh get
0:08:24
i think this is the one that i'm
0:08:28
which has the latest change
0:08:38
that one and get pull
0:08:44
okay i don't want to do any changes here
0:08:55
i'll i'll do one thing i will
0:08:58
discard these changes that i did
0:09:09
it i'm pretty sure i'm on the wrong
0:09:19
we can continue testing the posting of
0:09:23
name because i'm 100 sure that is
0:09:25
working because we tried it last night
0:09:34
now this is this this definitely is in
0:09:38
the one hey zen can you hear me
0:09:41
okay how are we doing you're right
0:09:46
welcome to the stream
0:09:48
yeah that's right what'd you do
0:09:51
uh i was just testing the board name
0:09:55
that we did bob um when i first
0:09:59
tested it wasn't working so it turns out
0:10:01
that i was on the wrong branch so i'm
0:10:05
becoming up-to-date now
0:10:09
i'm gonna test it again
0:10:16
could you please yeah
0:10:23
let's do a git pull from that one
0:10:25
because i remember
0:10:26
k did a change which i would want
0:10:31
so this would be it
0:10:38
i'm pretty sure it's working
0:10:41
it's just a matter of
0:10:47
okay hard refresh it and
0:10:54
so test one two three actually i wanna
0:10:59
today's date all right 2021
0:11:07
brilliant i'm pretty sure
0:11:10
so now we can move on here we go nice
0:11:14
like i said all right
0:11:16
so uh i know we were gonna
0:11:20
move on to the middleware implementation
0:11:24
for them uh and sorry not the middleware
0:11:27
implementation then get board id in the
0:11:31
implementation do you wanna
0:11:37
tested on postman that is the backend is
0:11:44
the backhand is good
0:11:49
yes it is working i'm pretty sure
0:11:52
because if the backhand wasn't working
0:11:54
then the board name
0:11:57
wouldn't be inserted into dynamodb
0:12:01
the backend is actually what inserts the
0:12:06
no no i'm talking about the function
0:12:08
which gets the board with its name after
0:12:16
i mean of course post is working but you
0:12:19
know there was a function called
0:12:21
um just get bored id
0:12:26
which is supposed to get the board with
0:12:29
its name not its id its name
0:12:36
right so we were supposed to make that
0:12:39
work in the back end
0:12:45
but i thought we already did that
0:12:48
yeah so um that's not like it'll be good
0:12:51
that we can go ahead and test that and
0:12:52
make sure it's working then start
0:12:54
working on this middleware
0:13:02
oh okay um with you
0:13:04
15 now so all you want to do is just
0:13:09
function from postman as in
0:13:13
within the backend
0:13:15
api yeah yeah because this was like this
0:13:17
not working was pretty surprising so
0:13:20
yeah if you don't know where this
0:13:21
doesn't work then it will be no use
0:13:25
yeah totally agree with that so i'll
0:13:28
just open postman and
0:13:32
see where this goes have you got war
0:13:44
you look different
0:14:01
ah there's the old karthik
0:14:04
the normal all this gold coffee
0:14:08
brilliant all right
0:14:10
let's just remember
0:14:13
our work was pretty hectic man as in i
0:14:16
expecting this as in
0:14:21
there were too many urgent requests
0:14:24
one after another one off to another and
0:14:27
i was like yeah okay this is what
0:14:30
happens when you get a promotion
0:14:38
by the way did you send um the request
0:14:42
from slack to integrate github
0:14:58
access our github from this
0:15:03
i just ignored it because i didn't know
0:15:16
yeah yeah it was weird to be honest
0:15:23
come on postman i don't have all my hair
0:15:29
so was uh everything okay with you
0:15:33
yeah yeah just like
0:15:35
your knees on the go now and
0:15:39
thanks pretty much good
0:15:42
i hate when it's raining so
0:15:48
okay so i think i'll have i don't need
0:15:51
ah i think i need to update the api
0:16:10
there we go and i want to get all the
0:16:14
um all the boards first
0:16:17
and then search them by name
0:16:25
can we show me something
0:16:27
loving now you did the last time
0:16:39
so we can just go over to the
0:16:44
and start implementing that
0:16:47
yeah i'll take over from here i guess
0:16:53
oh you wanna [ __ ] if you wanna share
0:17:16
always happens with me oh yeah
0:17:20
and my computer hangs
0:17:28
it's gonna take some editing again
0:17:33
okay let's come to the enhancement
0:17:39
um so i've already made
0:17:43
a separate branch so you might want to
0:17:48
okay i'll pull it and see what we have
0:17:51
um it's called get bought um
0:17:57
you probably want to
0:18:08
at the moment i'm not 100 sure how to
0:18:17
and i don't really want to waste
0:18:24
surely you'll be able to figure it out
0:18:26
yeah of course of course
0:18:30
so how do you know um
0:18:35
yes so you would want to get checker and
0:18:38
then the branch name
0:18:43
right just say get bored
0:18:46
whatever you want to call it but
0:18:49
give you a really meaningful name
0:18:52
so we can identify easily
0:19:03
now restarting terminal
0:19:07
because the connection to the show was
0:19:11
wow you have got many tabs up yeah
0:19:14
that's probably causing it give me one
0:19:18
i think i'll close them
0:19:21
that's for the best
0:19:28
you've gone m1 isn't it
0:19:46
let's close microsoft teams as well it
0:19:48
takes a lot of space
0:20:06
wow man i can tell how many apps you
0:20:13
goes through the entire screen
0:20:21
how do you work in that way as in
0:20:29
yeah i just don't like closing stuff
0:20:31
i i always have this like thing in my
0:20:34
back of my mind that what if i need that
0:20:39
then you can go back again to it
0:20:57
solution to every problem
0:21:15
testing your internet connection at the
0:21:24
maybe close all the apps you don't need
0:21:27
because that consumes cpu
0:21:34
that's true that's what i'm doing
0:21:37
don't need you outlook
0:21:42
what are you going want
0:21:49
all right okay now we're talking
0:21:57
can you see my screen being smooth now
0:22:02
yeah it's a lot smoother but
0:22:06
untidiness in the background as in
0:22:09
everything is on your desktop
0:22:12
i don't know what you're talking about
0:22:18
anyway all right let's uh did you
0:22:24
yeah just one second and where
0:22:29
even your score is being weird
0:22:36
dude i don't think his vs code is being
0:22:40
where you've just got too much open
0:22:45
come on admit it admit it
0:23:19
to do minus b off to the checked out
0:23:25
short for branch i think off to the
0:23:30
as in get checkup minus b i think
0:23:38
yeah try that here we go
0:23:48
just check it out so what check card
0:23:56
switches over as well
0:24:08
you really have to get item and it's a
0:24:14
readable yeah yeah i've seen
0:24:21
have you seen my terminal yeah yeah yeah
0:24:24
that's item okay um
0:24:27
right so what are we gonna do now
0:24:31
just get a bit of water but
0:25:03
all right i'm back
0:25:06
seeing how do you request post with a
0:25:10
perfect post with a request money
0:25:14
why are we posting it
0:25:50
don't know the second leg freak out camp
0:25:52
link this is what i just opened it was
0:25:59
says how to you do a get request
0:26:02
yeah so i'm pretty sure
0:26:06
slowly slowly slowly slowly slowly
0:26:13
uh do a control f um i mean command f
0:26:22
there you go oh wait
0:26:25
that wasn't a get function because it
0:26:27
would have written like
0:26:31
ah okay cool right yeah that's why i
0:26:33
already looked through it there was
0:26:34
nothing in this okay cool yeah well i
0:26:39
your scanning speed to be honest
0:26:45
welcome to uni i guess
0:26:49
all right that's post
0:26:51
we don't need that
0:26:53
actually um it's just
0:26:57
get with this body i guess let me try
0:27:55
can get the board name from here
0:28:01
uh we might want to create uh
0:28:05
i mean not yet but continue
0:28:08
in the future we might want to
0:28:11
refactor the value
0:28:24
uh after gay you need a comma
0:28:50
and we need the headers
0:29:07
and i need to store this somewhere right
0:30:36
not got it on because
0:30:52
semicolon off to the bracket probably
0:31:07
one more curly braces you need
0:31:15
that's fine we can
0:31:17
make the gold look a bit sexy when it
0:31:27
what i was after yeah cool anyway
0:31:34
all right no editor here
0:31:41
we should catch the error as well if
0:31:47
again just just check it and see if it
0:32:08
this console.log um hang on hang on a
0:32:11
minute um i would have to give you
0:32:14
fun with the board names
0:32:16
because we need to get that board name
0:32:39
oh actually i don't need to because this
0:32:41
will post the board first
0:32:45
this function isn't being called right
0:32:49
right right yeah that makes sense
0:32:52
so what we can do is
0:32:54
um we probably need
0:32:59
a switch statement in the go method
0:33:04
that would check if we just call it for
0:33:07
once like right now um see what whatever
0:33:09
yeah yeah of course
0:33:15
so this will return something
0:33:22
right this will this should return a
0:33:30
return response i would say
0:33:33
should return a response
0:33:36
now i'm calling it from here
0:33:38
okay cool right yeah so
0:33:41
it's just doing message passing between
0:33:51
my name actually i need to pass in value
0:33:58
and the parameter there
0:34:04
this results are value problems
0:34:07
do you read where here i'm not sure
0:34:12
no you don't yeah this is fine
0:34:15
but we need to use value in the border
0:34:46
it's posting the board first so if i do
0:34:48
anything it could work
0:34:54
yeah i'll come in that and comment the
0:34:57
method out because that's just no use
0:35:11
oh okay we have something
0:35:16
getting all the boards which is um if
0:35:22
um in the middleware
0:35:25
and i actually go to
0:35:36
and over there can
0:35:40
it says it's got two methods
0:35:43
get rid of the get boards
0:35:45
for now we don't need that
0:35:51
now try it is that causing the problem
0:35:55
it's just bringing the data that we
0:35:57
don't want to see basically yeah
0:36:01
um right okay let me do a
0:36:24
this was called okay
0:36:30
you can't have a body
0:36:32
get can't have a body
0:36:37
request with guest slash head
0:36:41
method can't have a body
0:36:46
then how do we post
0:36:48
how do we give it our
0:37:03
gonna have to google this
0:37:24
uh how to use the feature painting
0:37:44
make sure but again
0:38:07
wouldn't be in the body
0:38:09
maybe it might be in um
0:38:12
in the request object
0:38:21
um how do i do that
0:38:27
do you wanna take five five minutes and
0:38:29
just go through the internet
0:38:32
yeah let's do that
0:38:48
you will re basically read the response
0:38:54
you know this is this is probably
0:38:56
exactly what you're saying right
0:39:03
how old has he done it
0:39:19
you know how we are passing
0:39:22
in the back end the board name in the
0:39:29
think we might have to use a separate
0:39:35
get request but append the board name to
0:39:40
so you wanna use like
0:39:43
just for the get uh
0:39:45
board you wanna use a separate url
0:39:48
uh by separate i mean that the euro will
0:39:52
still be the same but it will only have
0:39:54
um the value of this coming from the
0:39:58
front end appended to it
0:40:01
if that makes sense to you
0:40:03
right in the url you know what you see
0:40:07
so if you go back to the
0:40:11
so that means are we changing our api
0:40:24
what makes you say that
0:40:30
board name in the url instead of the
0:40:31
board id is that what you're saying
0:40:35
you know how you press
0:40:38
you type in the board name and the press
0:41:01
um because at the moment
0:41:05
in the back end is taking the
0:41:08
board name from the url
0:41:11
as independent to the url what i'm
0:41:22
value of the board
0:41:24
name to the url so save for example
0:41:28
plus and then value
0:41:38
slash and then value
0:41:53
and then plus again yeah value
0:42:04
might be a kind of a
0:42:07
way but i'm not entirely sure if it
0:42:13
there's fetch api there would be a way
0:42:15
to like get particular stuff right like
0:42:18
scan particular stuff in the database
0:42:21
um and to get stuff you always don't get
0:42:26
okay um so the role of fetch api isn't
0:42:30
the scan that database
0:42:33
it doesn't do that right
0:42:35
it just doesn't matter
0:42:38
just to pass parameters to help the
0:42:46
right right right right i see that's
0:42:47
what i'm kind of taking that yeah there
0:42:49
must be a way to pass parameters right
0:42:56
this is um just a kind of a
0:43:01
really lazy way to do what we want to do
0:43:07
we just wanted to get this problem so we
0:43:09
didn't have any five minutes
0:43:24
i'm just thinking um
0:43:31
is there any way we can oh um
0:43:35
you know how we did in the express f as
0:43:38
in request or params and then the
0:43:45
um in the express app
0:43:48
when we wanted to post or get things
0:43:52
we looked up in the
0:43:58
as in request door params
0:44:03
right here yeah i'm kind of good yeah
0:44:06
i think we could use something
0:44:09
similar to that here
0:44:13
so like it'll be somewhere around here
0:44:18
the value in the request object
0:44:22
get the board accordingly um
0:44:27
maybe uh remove the body
0:44:31
just console law what do we get in the
0:44:37
actually should it should basically be a
0:44:39
request object not a response
0:44:45
or it should be a response no requests
0:44:53
login the response
0:45:30
what's this there we go
0:45:39
the json oh wait it is isn't it it is it
0:45:44
is what we want to do is
0:45:54
oh wait no that doesn't make sense
0:46:10
no no no like in the back end we don't
0:46:12
have any controller which takes this as
0:46:15
a parameter with like value
0:46:20
oh yeah it does yeah so
0:46:23
yeah then that's it problem solved
0:46:29
lazy way and she don't really
0:46:32
want to do it that way
0:46:41
leave it at that for now
0:46:45
because we kind of really
0:46:48
want to finish the basic functionality
0:46:50
and then thinking of this standards and
0:46:54
yeah but what i'll do is i'll put this
0:46:56
in peer review in jira for now
0:47:37
create another one
0:47:42
just add a bit of a description what is
0:47:47
what part of this task
0:47:50
needs a peer review
0:48:53
sign it for me right now
0:49:03
um you might want to change the function
0:49:14
um can you put the beer off that
0:49:20
get bored by it's a
0:49:26
pretty sure did it be small
0:49:29
oh y'all do me exactly you can
0:49:42
catboy by name cool so if you want to go
0:49:46
back to the diagram you
0:49:48
did the other day have
0:49:50
have you still got it
0:49:52
yeah pretty sure i saved it on drive
0:49:56
let's just copy and paste that into that
0:50:08
yeah i'll take a screenshot
0:50:22
on that pair review one and then
0:50:31
make the backhand talk to the
0:50:52
and this would be just to
0:50:58
get the board by name
0:51:01
oh you want to do this just for get
0:51:03
bored by name then we'll do it in devon
0:51:07
it's only relevant for this one
0:51:40
what's the next one let's see oh wait
0:51:43
why didn't we put this in progress
0:51:45
this whole thing is in progress
0:51:49
okay that one's done
0:51:51
get a specific board this but
0:51:55
you already have this ticket
0:51:59
from the back end to the front end
0:52:05
what did you say what
0:52:07
guess specific billboard from the bronte
0:52:11
yeah i'll delete this ticket this is um
0:52:13
comments comments comments
0:52:19
i think it's your friend
0:52:26
your friend commented ansh
0:52:34
um i think i'll go ahead and delete
0:52:41
no no don't delete that
0:52:45
encryption on that that um
0:52:48
he said duplicate one
0:52:51
what's the point of keeping it
0:52:54
we already have um this working
0:52:58
okay yeah yeah delete it they'll just
0:53:01
create confusion that there is a ticket
0:53:05
just visible from the front end to the
0:53:08
okay yeah that's fine that's just a
0:53:26
do delete no no no no
0:53:31
assign to someone delete another
0:53:34
board first like you know delete board
0:53:39
delete board is already uh of
0:53:42
scientists someone else as in an other
0:53:45
member of the team
0:53:57
so when you say delete the board from
0:53:59
the database is that by name or by id
0:54:05
i think it would be by
0:54:07
ah we need to change a few things
0:54:21
change the old fbi all right that might
0:54:30
do a ticket um okay just check in there
0:54:37
now go back to the list of those
0:54:41
child issues i just want to check one
0:54:48
delete a board from the database
0:54:59
we should add another child task
0:55:08
a board from the database
0:55:21
uh i think this will be a whole new task
0:55:28
making sure the api is updated like we
0:55:31
need to change the api design right
0:55:34
we need to change every single function
0:55:36
to work with um board name
0:55:41
yeah at least that's what we think or
0:55:43
what we can do is we can change the
0:55:46
backend function and then connect the
0:55:48
middleware as we go
0:55:57
here's what we're gonna do and then one
0:56:05
yeah um if you want to create another
0:56:18
which one oh so in the child issues
0:56:24
renamed that hosted
0:56:27
delete abort from by
0:56:30
from the database by name
0:56:41
is that a middleware function or is it a
0:56:45
because now we have two
0:56:47
places where this needs to be
0:56:52
that's what i was gonna say put a hyphen
0:56:55
and then do um middleware
0:57:00
i'll say mw for middleware so fine
0:57:16
thinking that um this is
0:57:19
assigned to tanesh paneer and he might
0:57:22
not understand what mw means that's true
0:57:27
now we would have to create another task
0:57:30
as in a child task which
0:57:33
would be the same but for the back end
0:57:37
which would be same whatever
0:57:55
since you're really proficient at this
0:58:04
forward as i wanna
0:58:08
well how about if i do
0:58:11
this and you can just uh keep on guiding
0:58:18
you're gonna go right now or do you
0:58:19
wanna do it next time
0:58:30
for me right hello your screen
0:58:36
um actually we just have one minute left
0:58:58
oh right right right i see
0:59:04
no the first first step to learning how
0:59:16
one come on jira show me some quick
0:59:23
come on then new internet time
0:59:32
i'm on a really tight spot at the moment
0:59:37
putting a hole to that
0:59:40
you got a promotion come on yeah but
0:59:42
that doesn't mean that
0:59:47
expenses increase because i told my
0:59:52
they said okay we need this much every
0:59:54
month and i'm like cool
0:59:58
it's not easy like being
1:00:12
we already added the child issue there
1:00:15
okay cool so all i need to do is
1:00:19
um the last one no no no no
1:00:21
it's already there oh i just didn't
1:00:32
and i just do this and
1:00:36
and this i can assign that to myself
1:00:48
oh okay delete a board from the okay of
1:00:54
next one we're going to be
1:00:56
starting from this
1:01:03
perfect all right uh
1:01:09
tomorrow um that was good that we
1:01:11
started the jira board um yeah that was
1:01:14
really necessary exactly yeah but
1:01:16
now we're on track and we'll follow the
1:01:18
board from tomorrow cool
1:01:20
so yeah see you guys tomorrow and it was
1:01:26
jen had some fun and was productive as
1:01:33
tomorrow back same time same place and