0:00:24
what is going on guys welcome back to
0:00:27
another session on buildbreaking fix
0:00:29
brought to you by the two of those glute
0:00:32
exclusives raw coders
0:00:34
zayn and tory the super aurora
0:00:39
how are you feeling
0:00:42
feeling good glad to be back thanks yeah
0:00:45
fantastic really really good to hear
0:00:51
the gizatori is back in action
0:01:00
first thing is first let's acknowledge
0:01:03
the country and pay respects to the
0:01:04
elders so here goes
0:01:08
i begin today by acknowledging the
0:01:10
traditional custodians of the land on
0:01:12
which we gather today and pay my
0:01:14
respects to the elders past present and
0:01:17
future i extend their respect to
0:01:19
aboriginal and torres strait islander
0:01:24
all right fantastic
0:01:32
got a new sys a new system in the place
0:01:36
so what happens now is
0:01:39
every day a different person chooses the
0:01:42
background the braggart music and
0:01:48
give you two seconds or three seconds
0:01:51
to choose a letter
0:01:54
gonna choose it and then we will play a
0:01:57
song on background music
0:02:00
okay starts with that letter okay so
0:02:06
one go z for zen done
0:02:12
right so let's see
0:02:14
oh no i don't know what
0:02:20
isn't here um what would be the
0:02:25
let's set to that here i think it's r
0:02:28
yeah r s t u w x y z yeah all right so
0:02:46
oh yeah there we go oh yeah hell yeah
0:02:52
oh fish i had long hair
0:02:55
and yeah then i could do rescued
0:03:01
uh so a bit of a progress
0:03:05
cool yeah he actually
0:03:08
chose to do was okay so bill uh so
0:03:17
me and finish that we basically
0:03:20
set the hang on if we uh if we can't
0:03:25
uh use authentication as in at the
0:03:28
moment due to due to the time
0:03:32
then we should go with the passcode
0:03:42
yeah that's been pretty
0:03:45
so far because uh all the ways we are
0:03:48
trying is not working
0:03:51
but bring game there
0:03:53
as in in terms of progress and
0:03:57
i think most importantly learning a lot
0:04:01
because i have never done hashing using
0:04:05
as in hashing overall
0:04:11
i haven't done much with authentication
0:04:13
like i've learned a lot myself over the
0:04:19
two months kind of
0:04:23
doing some of my own stuff
0:04:26
but i mean i i've i've read tutorials
0:04:30
hashing i've watched
0:04:34
there's like different types of
0:04:39
yeah yeah that means yeah
0:04:42
i don't know that much
0:04:46
and i think you uh
0:04:52
as a guest as in as a viewer on friday
0:04:57
that we could potentially use in um
0:05:06
yeah and i wanted to go that route i'm
0:05:09
just saying i just want to get this done
0:05:12
yeah at least the mvp
0:05:14
as soon as we can so
0:05:17
the cognito the authentication thing can
0:05:21
come out to basically the first release
0:05:26
i i've only i've never used it i've only
0:05:33
i've never actually used it um i think i
0:05:36
played with it once
0:05:40
i didn't do anything with the back end
0:05:44
it was just like the basics of the front
0:05:50
uh what is what is their service for
0:05:54
not being stock what's the other one app
0:06:02
i know it plays very nicely with amplify
0:06:04
because they have like sdk in there
0:06:08
um and then you get like a full like you
0:06:13
widget too for like a login like a ui
0:06:17
um but yeah i've never i've never hooked
0:06:21
like dynamo db and all that
0:06:24
stuff i i think some of that's taken
0:06:26
care of for you but i'm not 100 certain
0:06:33
that makes sense though
0:06:36
um so in this case what we can do is
0:06:40
well yeah sounds great quick
0:06:43
i'll just share my screen
0:06:46
and we're going to take it from there
0:06:50
all right cool so well i don't need that
0:07:00
changes in the repo
0:07:06
changing the reap yes so i
0:07:09
was as in trying to
0:07:16
code and it's my habit to basically push
0:07:22
anything i've done every day
0:07:26
even if it's broke
0:07:28
huh how come i don't see
0:07:31
how come i don't see the changes
0:07:34
uh oh is it all on the front end
0:07:38
it's in the back end but um it will be
0:07:41
in a different branch called a bald
0:07:50
so there is a websocket branch closed
0:07:54
um not closed but shoving closet
0:08:07
that's already done it isn't a websocket
0:08:12
i don't know did you merge it in the dev
0:08:15
i haven't messed it um
0:08:19
closing it one meant
0:08:22
was we can stop touching that
0:08:31
what a terrible habit what's a terrible
0:08:37
i don't know exactly what it
0:08:39
what are you thinking about
0:08:42
even though the code is broken but i
0:08:45
have a habit to push the code in the
0:08:47
repo every day even though the code is
0:08:52
saying that why would you push a broken
0:08:56
that's a bad habit
0:08:58
you can always do git stash
0:09:04
i can but it wouldn't come up in the
0:09:07
repo in the committee yeah
0:09:09
and how often that i do it yeah
0:09:12
oh so you're just going for you're just
0:09:15
going for the little graph the little
0:09:23
someone told me that when you're
0:09:26
that's the first thing that the
0:09:29
look how often does he code
0:09:32
for his own learning
0:09:33
and that's the evidence
0:09:35
i have i have i've almost hit three
0:09:37
thousand commits in the last year
0:09:40
there you go then here you go
0:09:47
hey he's committed and no no
0:09:50
commit is when i'm working on my home
0:09:52
i'm on my own projects most of the time
0:09:54
i don't i don't care i'm just like uh
0:10:00
learning comes from failing but there
0:10:03
isn't something called failing because
0:10:07
and that's how we learn
0:10:10
yeah the only time i really care is when
0:10:12
i'm working on somebody else's project
0:10:24
i know i would know that feeling yeah
0:10:28
okay so what we did was um
0:10:35
hector said like now
0:10:42
i love to pull my leg i can tell you
0:10:46
i don't think it actually
0:10:49
he accomplishes anything until we pulls
0:10:52
my leg when i got one screen
0:11:01
all right cool so talking about this we
0:11:04
turn to use breakthrough js
0:11:08
and why did we do that you may ask am i
0:11:12
right what i missed the last part are
0:11:17
yeah i can't hear you i was just reading
0:11:20
okay and can you see my screen as well
0:11:23
oh no actually sorry your screen is not
0:11:30
i was just i was just trying to read the
0:11:33
changes in the code
0:11:39
uh okay yeah i i gotta
0:11:49
to get decrypt here
0:11:51
oh wow i can't use
0:11:54
it's not allowing me to share my screen
0:11:57
the browser can access your screen try
0:12:00
capturing a different screens
0:12:02
to see if it continues
0:12:15
this beam is coming again why are
0:12:18
because the light is on
0:12:21
and only turn the light off
0:12:27
we need to sort this one out system
0:12:29
preferences i'm just sorting a
0:12:32
screenshot at the moment
0:12:34
i'll be right with you
0:12:58
okay it's saying to me that i need to
0:13:02
quit and reopen chrome
0:13:04
so i'm gonna go and then come back
0:13:10
do you know what um before you leave
0:13:14
um hello still there yeah
0:13:24
what are the routes that you guys were
0:13:31
yeah so features commented as a
0:13:42
yeah so okay i'm gonna
0:13:51
create a new board
0:13:54
right so now i'm gonna go and come back
0:14:00
wait for me wait for me with me
0:14:04
wait for me away from me with me
0:15:11
salt length to generate salt to use
0:15:14
call back receiving the error if any and
0:15:17
the resulting cash
0:16:03
wow where are you zane
0:16:12
hello welcome back
0:16:17
let's try and share my screen now and
0:16:23
no stop complaining well done to me
0:16:32
all right cool so let's open this one up
0:16:35
okay are you able to see my screen now
0:16:42
cool so we converted from b crypt to
0:16:46
recoup dot j um bigger js
0:16:52
why did we do that
0:16:55
i think it was because
0:17:01
ah because the big crypt wasn't
0:17:16
apple with mac it wasn't compatible but
0:17:22
financially google it or
0:17:25
by the way the guys who don't know
0:17:29
one of the streamers swell
0:17:33
comes on with us um on saturdays which
0:17:36
is monday wednesday and friday
0:17:39
and the other days are tories
0:17:45
looked up on friday and it
0:17:47
said that if you use big crypt on mac it
0:17:50
wouldn't work but if you
0:17:56
it would work magically
0:17:58
sorry were you using bcrypt on the front
0:18:07
was it giving you a problem because it's
0:18:13
there's no yes mac
0:18:15
um it was giving us an error something
0:18:20
oh you mean like your local development
0:18:23
like locally developing it
0:18:30
it's weird all right whatever it sounds
0:18:35
come on i will show you what the error
0:18:39
maybe i must have missed
0:18:42
i'm just i'm just i guess i'm just
0:18:44
curious because i've never i've never
0:18:46
run into an issue like that so
0:18:49
okay interesting kind of impressive i
0:18:51
mean if it was the front end i
0:18:53
understand it's like different browser
0:18:56
like you know safari or whatever or
0:19:01
if it was like a mac server but this is
0:19:04
like the lambda is running in a node
0:19:14
like don't all the
0:19:15
don't all of them run on linux like
0:19:21
i think they do or some like some that's
0:19:31
google search says something else if you
0:19:35
run on from this on linux it would work
0:19:38
but it's not it won't work in mac okay
0:19:41
so i'll just show you um
0:19:44
the error basically
0:19:51
um this one no handler
0:19:54
this one would be the one
0:19:56
monitor view login cloud watch yes
0:20:04
in node 16 i think
0:20:12
the lan the lambda's latest version is
0:20:14
node 14 so you don't have them but in
0:20:18
15 and 16 there's like a bunch of like
0:20:21
um crypto apis that are added
0:20:24
which are pretty cool
0:20:32
i'm gonna have to check which version
0:20:34
have i got no though
0:20:40
yeah i think the lts is now 16 so you
0:20:47
the latest lambda version is still 14.
0:20:55
i see which means that we can't use
0:20:58
there even though they are out yeah i
0:21:00
mean i wouldn't know how to use them
0:21:02
anyways but they look pretty cool like
0:21:04
you can generate prime numbers and stuff
0:21:07
whoa interesting stuff
0:21:11
so this was the error that we
0:21:18
and basically this said that in one of
0:21:21
the answers that this comes when you try
0:21:23
to use bitcrypt on on a mac operating
0:21:30
invalid elf header i have no idea
0:21:41
valid health better
0:21:52
yeah so which is why we actually decided
0:21:56
we can we can try big crypto
0:22:00
big group js and see if that
0:22:02
works for us and apparently that doesn't
0:22:04
want to work either
0:22:09
because obviously i'm doing something
0:22:16
what we wanted to upload
0:22:23
js you can use in the browser too so
0:22:27
like decrypt is only
0:22:29
the regular bcrypt is only a node module
0:22:57
regular expressions are not added
0:23:02
now i'm not that on
0:23:07
ah there you go okay no get bored by now
0:23:13
create a new board
0:23:15
right so this is how we would try to use
0:23:19
and although it's not giving us any
0:23:22
error but it's not even breaking in the
0:23:38
that's the thing it's not
0:23:40
giving any error so
0:23:44
so so what is it not doing
0:23:47
so it's not um so it was you were
0:23:50
supposed to take this passcode
0:23:58
and then set the part the hash password
0:24:07
insert the hash passcode in the db
0:24:11
so hash patch code is just blank
0:24:14
is that what you're saying
0:24:20
going into this function at all
0:24:25
where is hash passcode declared
0:24:39
so it's just blank
0:24:43
or undefined or whatever
0:24:46
it doesn't come up with anything
0:24:49
um i'll show you what does it do
0:24:53
come on postman i need you
0:25:33
right now mine i'll go in the
0:25:37
in diameter db and
0:25:39
bring me up from there
0:25:46
want me to give you the
0:25:48
the board that has that passcode
0:25:58
fine i've got that now
0:26:04
102 we are looking for you're supposed
0:26:07
to get that passcode back
0:26:11
from your get request
0:26:21
get the entire board object back in
0:26:24
which the passcode will automatically be
0:26:38
just made me think you know what's a
0:26:40
good thing to do later is to make sure
0:26:42
that the that the passcode
0:26:46
sent back to the user
0:26:49
it's never sent back to the client in
0:26:52
any in any of the routes
0:26:58
the next thing they'll
0:27:04
how many boards are they wow
0:27:07
like 50 or something i don't know i
0:27:09
probably made a bunch when i'm like
0:27:11
messing around with
0:27:14
that's fine that's that's just a good
0:27:22
yeah i was gonna say there's one that
0:27:25
i think i know who would have done this
0:27:29
one person who does
0:27:30
this kind of words sniff
0:27:37
oh wow all right now mine is already
0:27:44
okay so this is our board and
0:27:46
yeah he didn't do it
0:27:52
you know what i'm gonna do uh i'm
0:27:56
date and and time that the boys were
0:27:59
created so we can at least check as in
0:28:06
uh one or two yeah this is the one we
0:28:11
which inserted perfectly fine place this
0:28:13
one now i'm sure you can delete all the
0:28:16
boards and you'll be fine
0:28:18
yeah that's what i'm gonna do now
0:28:21
well actually save the save the one
0:28:28
yeah there's one called just test board
0:28:30
that's the one on the
0:28:36
no no there's one called just test board
0:28:46
it's not no i don't mean it's like uh if
0:28:48
you go to scrambler.dev it's the one you
0:28:52
you can click on and see like a demo
0:29:12
okay must be this one
0:29:17
if you're talking we can't hear you tori
0:29:32
and you're going again
0:29:37
why weird you can't hear me no i can't i
0:29:40
can now no no i can't
0:29:48
let's leave this one there
0:29:56
all right i'm gonna
0:30:16
okay so we wanted to go to cloud
0:30:20
watch let's see what what it did for us
0:30:26
this is the one 27
0:30:29
yeah see it doesn't give out any errors
0:30:35
and it doesn't even come in that
0:30:47
oh you know what you know why zane
0:30:51
it's because that i'm looking at the
0:30:53
docs that function is asynchronous
0:31:00
so it's ha it's it's happening after but
0:31:03
it's already sent the data to dynamodb
0:31:08
it's happening off to that bob
0:31:14
you need to wait you need to wait for it
0:31:17
right right right right see
0:31:19
so we can probably do this and check if
0:31:25
all right usually if there's like a
0:31:27
callback like that it's an asynchronous
0:31:34
actually that would make sense
0:31:37
because it's acing we need to wait for
0:31:39
it to come back and then
0:31:42
send it to the debate yeah
0:31:48
i think that might be the problem
0:31:50
hopefully there is a problem in which
0:31:53
can we can actually move on
0:31:56
yeah it would be nice right
0:32:04
yeah oh by the way um do you have these
0:32:08
packaged dog dances in every
0:32:11
photo for yourself as well
0:32:24
because it doesn't
0:32:27
build the project for me if i don't have
0:32:33
that's why i got to
0:32:36
and then that's weird
0:32:39
on mine it works without it like sam
0:32:49
by the way um i can show you how i
0:32:54
locally to just speed up the development
0:32:56
time like a thousand percent so you
0:32:58
don't have to do this like deploy
0:33:03
okay that'll be really helpful
0:33:05
actually and it's really easy it's
0:33:13
yeah let's do that
0:33:19
yeah sure so yeah whenever you're done
0:33:23
and waiting because i'm really as in
0:33:26
keen to see if this works or not with
0:33:44
i have no idea why you need to install a
0:33:50
hmm that is weird on mine i do not sam
0:33:53
just builds it and
0:33:55
it realizes that the only requirements
0:34:03
um our amazon the aws
0:34:08
do it after the mvp yeah well
0:34:17
that's really interesting to be honest
0:34:24
i see the moment of truth
0:34:26
what's interesting
0:34:33
interesting um that you don't get i it's
0:34:36
not working for me but it's working
0:34:39
maybe you should try update updating sam
0:34:42
maybe it's at this like if you update
0:34:49
the issue as well yeah true
0:34:53
okay i'll probably do that after this
0:34:56
but yeah that didn't work
0:35:03
just inserting that
0:35:07
let me check the logs
0:35:12
no no that's not the one
0:35:18
see it doesn't give any errors
0:35:22
but it's not working either
0:35:42
i'm thinking again can we even use this
0:35:53
if you couldn't you'd throw an error
0:35:57
that's true though as well
0:36:00
but where would i be going wrong okay
0:36:03
however if you show us how um you do
0:36:10
i'll show you this trick that will will
0:36:15
always want to do this i think
0:36:24
i'll help you out this will take like
0:36:25
two minutes probably yeah so
0:36:31
go to the debugger in vs code
0:36:37
um run and debug or i'm sorry create a
0:36:41
new launch json file right under it it
0:36:45
right under run and debug
0:36:47
create yeah and then create one for node
0:36:56
click add a new configuration
0:37:01
all right and then just type in nodemon
0:37:06
no demon i don't know
0:37:11
what in mind set up yeah just click
0:37:17
launch config below it you can delete
0:37:19
that one that second launch config just
0:37:25
all right so this launch config will
0:37:28
work automatically with nodemon so yeah
0:37:30
you i'm sure you've used nodemon before
0:37:35
so if you're if you're
0:37:38
nodemon right okay nodemon thanks guys
0:38:08
sorry to the viewers out there it must
0:38:10
have been hard on their ears
0:38:16
with the um with that program
0:38:22
that that line that says program there
0:38:26
what you want to do is point that
0:38:30
at the file that you want to that you
0:38:32
want to debug that you want to run
0:38:34
so in this case it's the
0:38:37
slash scrumbler api
0:38:43
because that's where the um
0:38:46
the lambda that's this app.js starts
0:38:48
right it actually starts um well don't
0:38:50
delete workspace folder
0:38:52
don't delete that part
0:38:58
yeah yeah so after you just want to
0:39:01
point it at the folder and then the file
0:39:08
and it's it's lambda js
0:39:15
so this is for the express app right
0:39:18
the phone was app.js but it actually
0:39:22
starts in lambda jr oh yeah yeah yeah
0:39:25
true all right and then um the other
0:39:44
and comma and then add and then control
0:39:52
okay and here you're just gonna add the
0:39:56
um to inject into the debugger
0:40:02
you want to add one called
0:40:05
yeah so use the curly brace
0:40:08
because there's an object yeah so you
0:40:13
um you got to put them in quotes
0:40:18
so it's a key value pair
0:40:22
the aim of the key
0:40:23
you want to you want to call
0:40:36
bnv node environment and then you want
0:40:43
this is just what i chose because this
0:40:47
uh the value is lowercase
0:40:50
so all of it is working so
0:40:55
what environment development
0:40:57
no no no sorry sorry the value not the
0:41:04
that that development is lowercase
0:41:10
all right and then
0:41:12
there's another key i made so if you go
0:41:33
you'll see another environment variable
0:41:35
called aws cli profile
0:41:39
so just take that variable name
0:41:45
now yeah the other the one from the
0:41:47
process slash yeah that one
0:41:50
i think they're the same but whatever
0:41:52
um and then you just want to pick
0:41:55
as the value whatever
0:41:57
um is your profile on your
0:42:01
cli your aws cli maybe it's default
0:42:06
okay right well i'd like to check that
0:42:08
one i can't remember it now like mine is
0:42:14
so it knows to use that profile
0:42:21
i'll just stop my my screenshot and
0:42:24
really quickly check
0:42:36
yes yeah that's the one
0:42:46
no that was a wrong file
0:42:55
okay it's a minus scrambler
0:42:58
so yeah just throw that in as the value
0:43:09
so basically all all we're doing is
0:43:11
injecting whatever environment variables
0:43:16
and the last one is the
0:43:20
board environment variable that's also
0:43:33
i think you need the oh there's new ones
0:43:40
so yeah i would just go to the template
0:43:44
global environment variables
0:43:48
on the top and just copy and paste those
0:43:51
over and then you're good to go
0:44:04
now you're just kind of changing the
0:44:06
too bad it doesn't do that for you
0:44:20
and the reason red
0:44:26
need users to come
0:44:28
how is this in line with the title of
0:44:32
stream is because we want to speed up
0:44:34
our testing and see if what we're trying
0:44:38
to do works and we don't really want to
0:44:42
deploy every time to sam
0:44:44
that takes up a bit of a time which is
0:44:47
why tory can you just be you're sorry
0:44:50
you're missing one comma on line 23.
0:44:54
yeah yeah so all this does thanks for
0:44:57
reminding me though yeah yeah so if you
0:45:00
and now if you go and look at app js
0:45:07
um you already have it open so if you
0:45:12
if the process is development it's gonna
0:45:18
so now it's just using the um local
0:45:23
configuration of the sdk the aws sdk
0:45:27
so that you can just develop locally
0:45:30
like use use the aws um
0:45:35
sdk locally so you don't have to like
0:45:37
deploy now so it's just gonna grab your
0:45:44
and that's how it's authenticated
0:45:48
and don't worry it's not going to be
0:45:49
exposed to viewers or something
0:45:52
all right cool cool yeah
0:45:54
yeah so now if you want if you run the
0:45:57
debugger you go click on the debugger
0:46:02
and now you see it says nodemon
0:46:06
that was for the viewers
0:46:14
if you hit if you just run it now
0:46:18
it should run this file hopefully and it
0:46:20
shouldn't be an error
0:46:27
oh you don't have it installed globally
0:46:32
oh so you can you can install
0:46:35
yeah you can install it on your computer
0:46:56
was something i was looking at the other
0:46:58
day that was funny
0:47:02
what was it though can you remember
0:47:04
trying to think it was like
0:47:07
maybe it'll come back to me
0:47:10
i remember there was a store though
0:47:15
and it was just like a little cafe
0:47:26
hello basis interesting which is
0:47:39
it was like uh like the owners of the
0:47:41
cafe were christian
0:47:45
so it's he loves us but it looks like
0:47:51
like hello vegas isn't it
0:47:57
it took me like it took me like
0:48:01
two weeks to figure that out
0:48:06
because it was it was all it was all
0:48:08
crammed together it wasn't spaced out
0:48:10
like he loves us it was the whole word
0:48:15
so what do i know amazing
0:48:19
i see and i was like oh he loves us
0:48:23
okay that makes a lot more sense i don't
0:48:26
know what's this hello vases
0:48:32
okay i'm still giving me that error so
0:48:35
what i'm going to do is
0:48:39
um reopen the repo and see what places
0:48:55
sometimes you gotta like open and you
0:48:57
gotta kill the terminal
0:49:01
oh okay so i didn't install it
0:49:11
wait is that how you check
0:49:13
the version of that
0:49:30
okay so it did add
0:49:36
all right try to run the debugger now
0:49:42
all right so now there you go
0:49:49
and now and with and have you ever used
0:49:54
have you ever used it so when you so
0:49:57
it's like it's like hot reloading
0:50:02
so the server is always up now and
0:50:04
whenever you make a change
0:50:07
and click and save your change it will
0:50:10
rerun it will it'll
0:50:12
restart the server automatically
0:50:16
you can iterate like super fast now
0:50:20
so it basically works as react
0:50:24
should do a change and then
0:50:26
you you can just just see the changes
0:50:31
yeah exactly so you'll see if you
0:50:34
um and if you want you can go to back to
0:50:37
your launch config
0:50:48
you can go to your launch config and
0:50:52
see where it says name
0:50:56
so if you if you change the name
0:51:02
update the value in the debugger that
0:51:04
you see so you could say like launch
0:51:06
app.js or launch express app and then
0:51:11
a little bit more helpful because like i
0:51:13
have a bunch of these now for each
0:51:18
because this is like way way faster that
0:51:21
way yeah yeah true true
0:51:24
i say yeah that makes sense though
0:51:28
how would we test this part
0:51:34
so now you can actually use the debugger
0:51:37
and hit make break points too
0:51:40
ah right right so you can just add a
0:51:42
break point to that decrypt part that's
0:51:45
not working and just look at it in the
0:51:50
which is like it's just like way better
0:51:52
you don't have to use console logs or
0:51:54
whatever you can go cam you can use
0:51:57
um there's log points in the debugger
0:52:00
that usually take care of that
0:52:02
anyways if you come here
0:52:11
yeah you gotta hit that end point
0:52:33
that's pretty sweet though isn't it
0:52:36
that is really great yeah true
0:52:46
like now you'll only want to develop
0:52:50
like now you only want to deploy like
0:52:55
done with something or you just have to
0:52:59
yeah yeah say you made changes to api
0:53:02
gateway the lambda well you can use the
0:53:06
local commands to like
0:53:10
run the api gateway stuff locally
0:53:14
too it's not posting it though for some
0:53:19
it's not posting the board
0:53:30
and this is the endpoint
0:53:32
there's no posting anything
0:53:36
it's not posting the board
0:53:40
because you're doing a get request in
0:53:43
the browser you can't do a post request
0:53:48
ignore me my brain is dead
0:53:52
like unless you go to the console and
0:54:00
yeah fetch posts would work though
0:54:06
oh okay that worked
0:54:11
oh you mean you want to do it okay so
0:54:16
uh how do you want to run
0:54:22
so basically from crime when i hate sand
0:54:33
like one way of doing it i'm sure
0:54:35
there's other ways is if you just open
0:54:40
the scrumbler enhancement and just run
0:54:48
and then change the
0:54:52
change where it's sending the
0:54:54
instead of sending the endpoint to
0:54:58
right the lambda just change between
0:55:04
yeah yeah yeah or wherever this is
0:55:06
running i think it's running on 3000
0:55:13
that was that was like how i worked on
0:55:16
the front end and the back end and made
0:55:27
especially with the the web sockets
0:55:31
and quick as well yeah yeah like
0:55:35
especially on my computer doing the
0:55:39
um and deploy and all those steps
0:55:43
taking me a long time just to make one
0:55:46
small change and see if it was working
0:55:50
and i was like there's got to be a
0:55:54
so then i learned how to use the
0:55:58
amazon sdk like locally just using that
0:56:09
whatever 22 23 and then i was like sweet
0:56:14
yeah this is way bigger
0:56:23
okay that's not gonna do it
0:56:28
that's not gonna work well you can open
0:56:30
up the console and send a fetch request
0:56:38
or you can you can just go to postman
0:56:44
change where you're sending the request
0:56:47
to just change it to the local
0:56:52
change the url to like
0:56:56
yeah that could be done as well
0:57:12
not that one either
0:57:18
localhost three thousand
0:57:24
although you might not you might have to
0:57:26
put the ip address i don't know if a
0:57:28
local host will work i don't know
0:57:31
we can check oh it did work
0:57:33
sweet see look at that and you get the
0:57:35
break point now you can just
0:57:42
interesting i like this
0:57:51
uh so didn't really come in there yeah
0:57:54
undefined so it's not i think it's just
0:57:57
not run yet so if you put a break point
0:58:00
oh wait it's on params now
0:58:07
cool so try try try the error then like
0:58:10
see if it's throwing an error
0:58:12
try the error callback
0:58:21
can you log the error or something
0:58:24
that's exactly what was gonna do
0:58:38
see how it restarted automatically for
0:58:40
you that's nice right no you don't even
0:58:43
have to run it again
0:58:44
it'll it'll just you just hit save it'll
0:58:47
it'll restart the server right right
0:59:03
oh there is an error yes
0:59:08
if types of person
0:59:10
um knowing todd is sure
0:59:12
that's here kind of look full
0:59:15
if you look in the
0:59:17
the terminal you should see an error but
0:59:21
because it would be it would log it in
0:59:25
certain export id connection
0:59:28
that's just when it starts up
0:59:30
okay so yeah it doesn't
0:59:39
just trying to check what's in there
0:59:43
and so just type sources is undefined
0:59:52
set random fallback
0:59:54
no it's not even there
1:00:05
oh hang on do we need to assign it
1:00:13
do we have to probably sign it as in
1:00:19
does it return anything to you
1:00:30
then we might not need a callback no no
1:00:34
you can't do you can't do that because
1:00:35
you're gonna return out of app.js
1:00:39
you're gonna return out of this route
1:00:44
you can try i don't i don't know if it
1:00:48
how about if you do
1:00:58
i looked at the documentation code and
1:01:00
it looked like the code you had was fine
1:01:11
that too but that isn't what cancer so i
1:01:13
really want to try this part as well
1:01:19
this part for dazzle and then storing
1:01:22
the value in this variable
1:01:27
should try and see why it does
1:01:36
who knows it might even work yes he
1:01:52
now that we know it's working
1:01:55
i can basically change the url
1:01:58
oh i love this to be honest
1:02:02
it's not it's really convenient
1:02:16
okay if you try this now ah it won't
1:02:20
work because it's not been deployed yet
1:02:30
is it this is the sam build and deploy
1:02:33
process faster or at least sam build
1:02:40
it is to be honest
1:02:43
because before i measured mine it was
1:02:45
like two minutes and now it's like 30
1:02:54
it is good investment of time
1:02:58
oh man i hated waiting around for that
1:03:07
i could do so much more
1:03:09
if that wasn't taking that much time
1:03:14
yeah i mean i'm spoiled because all the
1:03:17
stuff i work on is small little projects
1:03:22
everything just builds or i have a hot
1:03:24
reloading or whatever like super fast so
1:03:26
i have no patience sitting around for a
1:03:33
well in that case you should try
1:03:36
uh the builds of my work project yeah
1:03:39
that was i was gonna ask you how long
1:03:43
that is pretty much say if i put it to
1:03:52
something outside and then come back
1:03:55
and it would be done
1:04:00
yeah it's hilarious
1:04:07
okay so let's try this
1:04:11
i'm pretty sure it would be working now
1:04:13
because it was working
1:04:24
why do we have two
1:04:26
hang on i wanna play around a bit more
1:04:30
if we delete that one
1:04:36
and do another one voila
1:04:47
cool so that is done um i would
1:04:51
do one thing i will
1:04:59
don't upload the uh the launch json yeah
1:05:05
you can you can add it to the
1:05:57
i like that i like that's pretty sweet
1:06:01
you got it the passcode in there
1:06:07
okay that's then push my changes yes sir
1:06:15
fantastic man so that is all done and
1:06:19
dusted which was pretty good
1:06:22
very good progress and thanks to tori i
1:06:25
learned something new today
1:06:29
of how to speed up the
1:06:34
troubleshooting and a testing base so
1:06:37
when we know everything is working we
1:06:42
ins as in deploy and then just see it
1:06:46
working which is great
1:06:49
yeah it's great i love it
1:06:52
fantastic guys um so yeah
1:06:56
watching and bearing with us uh it's
1:06:59
always lovely having you all and um
1:07:02
yeah give us some guidance and
1:07:07
today we made really good good progress
1:07:11
showed how to do the entire testing and
1:07:14
debugging process offline as any local
1:07:17
host and then once
1:07:18
it's working then we can just build and
1:07:26
and we also got the
1:07:28
hashing for the password working which
1:07:32
so yeah if you want to see what we do
1:07:35
next which is a kind of surprise uh join
1:07:46
there's the one all right guys
1:07:51
we'll see you later all right
1:07:54
have a great night thank you