0:00:24
what is going on guys welcome back
0:00:27
to another session of
0:00:42
good to have uh everyone and um welcome
0:00:45
tori how do you feel
0:00:46
how do we feel today
0:00:49
i feel pretty good man i was coding a
0:00:52
lot today which makes me happy
0:00:55
that's brilliant man what were you
0:01:01
functionality for a bingo board but also
0:01:07
like i gotta refactor the code but i
0:01:09
also made it like drag and drop by
0:01:14
interesting so you can move around the
0:01:17
so basically in the future i'll use this
0:01:21
in one of the projects i'm making so
0:01:24
a user can basically make
0:01:27
a bingo board and then
0:01:31
like of course like custom input and
0:01:33
then i don't know maybe pictures or
0:01:36
to attach to the tile and then save it
0:01:41
save it to the database
0:01:43
that sounds really fast fascinating
0:01:46
though i'm i'm really keen
0:01:51
seeing it and running though and do a
0:01:56
experiment with that as well
0:01:58
it's actually not it's not totally
0:02:00
dissimilar to what we're kind of doing
0:02:02
here with the kanban board
0:02:07
because like i'm making a board that has
0:02:10
and then saving it to a database and
0:02:13
then there will be multiple users
0:02:16
it's like basically the same thing
0:02:19
ah okay yeah yeah that makes sense
0:02:21
though that makes sense and i think
0:02:26
done because we will be implementing
0:02:28
that functionality in this one as well
0:02:31
at some point um we can basically
0:02:34
um have your ex expertise
0:02:44
well i always think it's gonna take an
0:02:47
hour or something but you know i don't
0:02:51
usually takes a bit longer but each each
0:02:54
time i do stuff it it does get faster i
0:02:56
gotta say it doesn't mean i'm better
0:03:00
just means i practice a lot
0:03:02
yeah and practice makes perfect though
0:03:07
and then that's what is about coding as
0:03:11
in the more you do it the better you get
0:03:15
for sure for sure yeah definitely
0:03:18
perfect so let's just i acknowledge the
0:03:22
country and our elders so here goes
0:03:27
i begin today by acknowledging the
0:03:29
traditional custodians of the land on
0:03:31
which we gather today and pay my
0:03:33
respects to the elders past present and
0:03:36
future i extend their respect to
0:03:38
aboriginal and torres strait islander
0:03:44
fantastic so now that's done um so the
0:03:51
actually i'll do a bit of a recall and
0:03:54
tori are you there
0:04:02
his internet is playing up again i guess
0:04:09
yeah you're back now
0:04:11
yeah good i i like
0:04:14
refresh the browser because it like
0:04:16
got stuck or something
0:04:18
ah right i say yeah
0:04:25
yeah the good thing is that is back to
0:04:27
normal now which is great
0:04:29
hopefully yeah or maybe my wi-fi i don't
0:04:31
know if my wi-fi is being a bit buggy
0:04:34
today hopefully not
0:04:36
yeah hopefully now
0:04:38
plan for the best no hope for the best
0:04:40
plan for the worst
0:04:45
all right cool so um
0:04:49
just to recall what we did yesterday was
0:04:53
we were successful in enough to get the
0:04:58
ssl search and then
0:04:59
um point our app to our custom domain in
0:05:04
route 53 and now it is working
0:05:08
so i'll just share the screen with you
0:05:15
how it's looking at the moment which
0:05:22
i am so excited you guys got that
0:05:31
i really didn't want to do it
0:05:34
but i am i am i am excited to learn
0:05:52
maybe it's the cash
0:05:58
oh all right i'll say what's happening
0:06:05
so you know if we do
0:06:08
do uh do just scrambler.dev
0:06:16
maybe the cache in your browser or
0:06:19
probably yeah or or the cash on
0:06:23
on cloud front and then like you expired
0:06:28
probably yeah that must have been the
0:06:36
good part is that it's here now so which
0:06:38
is great so um yeah this is a la la
0:06:48
give a huge shout out to deathclub
0:06:51
that's a meter for their community and
0:06:54
um they really helped us um and
0:06:59
saved your business
0:07:04
which was literally on fire
0:07:09
also thanks to tori
0:07:12
as info as in kind of posting
0:07:15
the i am not afraid and
0:07:21
i'll take whatever he
0:07:22
whatever whatever flack whatever he
0:07:25
throw at me i'm cool
0:07:29
yeah true man true no matter well done
0:07:33
honestly no i i thought there would be
0:07:35
helpful people usually there are
0:07:40
yeah i think they're really helpful as
0:07:43
in whenever personally i have a problem
0:07:46
as in when i'm really extremely
0:07:50
which means that if i can't solve a
0:07:52
problem for five days then
0:07:59
which might be a bit of a bad habit
0:08:02
because all the time that's wasted as
0:08:04
well in those five days
0:08:09
i'll have to improve on that
0:08:13
but yeah man um so
0:08:15
what today's task is
0:08:23
i'm gonna create a board
0:08:25
and then send the url to you
0:08:30
going to access the board
0:08:37
and then what we basically want to see
0:08:39
that if you access it do we still get
0:08:42
your connection id as in which is
0:08:52
yeah yeah that's what i would say as
0:08:55
well but just actually i haven't shared
0:09:00
so i'll do that now
0:09:05
if if you understand what happened
0:09:08
do you have a second to take me through
0:09:10
just like briefly how it was resolved
0:09:18
that's what basically i was gonna do
0:09:21
after logging in this
0:09:25
aws account because
0:09:32
it will it will work out um
0:09:38
what is your you have a password manager
0:09:42
yeah and it's just the wrong wrong save
0:09:47
that will be interesting if it's
0:09:49
actually a wrong saved password
0:09:53
so i mean sometimes i accidentally do
0:09:55
that if i click stuff too fast
0:10:02
is it rule called this or raw coda
0:10:13
really why is it not
0:10:23
no that can't be the one that can't be
0:10:25
the one is this one i'm pretty sure
0:10:58
hang on a minute i'm gonna have to
0:11:03
this makes me sad then
0:11:10
again then not to worry and if this
0:11:13
doesn't work we always have your
0:11:18
you can open down your end
0:11:20
and i will in the meanwhile have a
0:11:23
little while what if you just go in the
0:11:24
root account and reset your password or
0:11:28
yeah that's true as well i'll just being
0:11:33
i wanted to make this work
0:11:37
but yeah we can do that as
0:11:43
it will be hilarious
0:11:47
this does the same thing
0:11:51
no that won't be that won't be hilarious
0:11:56
that will not be hilarious if you lose
0:11:58
those different routes
0:12:04
can can aws do anything for you if you
0:12:06
lose the root password
0:12:09
or you can you can like you can actually
0:12:11
have it send an email right yeah you can
0:12:20
with my password manager if i lose
0:12:25
access to my email for some reason and
0:12:28
the password and i lose any of the
0:12:39
uh yeah i see actually i don't think
0:12:41
they'll send a password reset to my
0:12:43
email so if i lose the multi-factor keys
0:12:45
and i forget the password for some
0:12:47
reason i'm screwed just true
0:12:53
it would be an incredible nightmare
0:12:55
because i would be locked out of
0:12:57
everything because all my passwords are
0:13:02
every single password is random except
0:13:09
right trying to try to say
0:13:13
that would cause you a bit of grief
0:13:15
though yeah i'd agree well so far like
0:13:20
probably seven years and i have not had
0:13:27
exactly fingers crossed
0:13:29
okay this time what i'm going to do
0:13:34
type in the password in the password
0:13:38
and then doing that way
0:13:45
can you possibly um
0:13:49
your notifications
0:14:03
uh what was it yeah that one it was
0:14:09
that's odd how do you hear that
0:14:14
yeah that's weird though because it came
0:14:22
yeah but your speakers are on isn't it
0:14:26
no no because i'm using my my headphones
0:14:29
i'm using a headphones
0:14:31
okay that's interesting uh maybe it
0:14:34
can't it must have had a sound come from
0:14:38
all right yeah i must have just not
0:14:41
heard it but you heard it
0:15:01
please don't watch me
0:15:08
oh wow baby girl coders
0:15:15
okay there was oh the first
0:15:17
international flight
0:15:19
to bali landed today from
0:15:23
areta tokyo i'm guessing it was the
0:15:31
and it carried 12 passes it carried 12
0:15:38
people returning back to indonesia from
0:15:40
i'm assuming japan or something
0:15:52
it's crazy because usually here there's
0:15:55
i think in 2019 20 million tourists came
0:16:04
you know a pathetic amount of tourism
0:16:10
shut down the airport
0:16:23
go through this review now
0:16:26
so and can you see you can't see my
0:16:29
screen yeah you can't see my screen
0:16:33
no you can isn't it
0:16:39
and can you see my screen
0:16:45
right so this is what we did basically
0:16:50
oh come on no available now go away
0:16:59
so that's not nice
0:17:10
as in some financial in
0:17:15
trading companies asking me to invest
0:17:20
oh wow you bala dude
0:17:23
you're a baller you're a baller they
0:17:26
want you they want you
0:17:29
they know you're flush with cash now
0:17:34
yeah and uh everything goes in aws now
0:17:41
all right sorry for the the silly
0:17:45
that's right and no problem at all um
0:17:48
yeah so what we did was basically
0:17:51
you know this name um
0:18:11
certification in the other account
0:18:16
the idea was to create a hostess zone of
0:18:24
not the domain there's
0:18:30
and when we have done that um it would
0:18:43
what is the hosted zone i don't know
0:18:45
anything about networking
0:18:47
hostess on is a zone in which you host
0:18:54
self-explanatory gotcha
0:18:57
find out i mean we don't we don't have
0:18:58
to i can i can learn on my own time
0:19:08
or ghost or whatever to a traditional
0:19:11
dns zone file it represents a collection
0:19:14
of records that can be managed together
0:19:26
i'm not watching you watching me
0:19:34
all right so basically i think was
0:19:36
trying to say that it's um
0:19:43
the opposite to a traditional
0:19:50
he do you know how um in in the
0:19:54
traditional zone file they
0:19:57
keep all the domain names and then
0:20:04
point that to their
0:20:16
i can't hear you the records that the
0:20:21
yes i mean yeah i don't know it's okay
0:20:23
let's let's not i'll just waste
0:20:28
i'll just watch a video on networking
0:20:31
and then i think that might be a good
0:20:35
i thought i would be able to grasp it
0:20:37
but i'm just grasping at straws really
0:20:41
oh probably i uh i need to work on my
0:20:47
skills a bit more oh man you know you
0:20:49
know how long when i studied
0:20:52
when i studied for my cert zane do you
0:20:54
know how many times i had to watch vpc
0:21:06
four times isn't it
0:21:08
probably more than that i probably spent
0:21:10
like eight hours of watching videos on
0:21:13
vpc and just the basics let's see
0:21:17
and still i'm like i probably forgot it
0:21:20
but i mean there was a lot of things
0:21:24
yeah yeah it is complicated
0:21:27
especially if you don't have a
0:21:29
networking background
0:21:32
yeah which is same as mine as well
0:21:36
the only thing i've ever done
0:21:38
is mess with a few website dns records
0:21:42
host the server and ah
0:21:45
right and mess with my my local
0:21:48
networking like my router and my local
0:21:51
area network so that was my analogy when
0:21:54
i was thinking about vpc was like all
0:21:56
the stuff i mess with
0:22:01
i don't know adding my computers and
0:22:03
some hard drive to some
0:22:06
local area network so that all the
0:22:08
computers in my house could use it for
0:22:14
that is really adventurous
0:22:16
i really wanted to do that
0:22:20
don't do it it's working
0:22:23
well worthwhile it was so slow in the
0:22:25
end it was not worth it it was very bad
0:22:29
oh okay because i i want it well i
0:22:31
wanted well for files it's probably fine
0:22:36
movies which is what i wanted to do
0:22:38
it was terrible it's terrible
0:22:45
all right let's move on though sorry
0:22:51
say we created the hostess zone
0:22:54
of our sub domain itself okay
0:23:04
hostess zones some other time and um
0:23:09
learn that because it would be a kind of
0:23:11
a good learning for me too as in i know
0:23:15
the overall concept but it would be a
0:23:19
so you had to create two hosted zones
0:23:24
the roarcoder.dev domain and then one
0:23:27
for the subdomain right
0:23:41
oh it was already there so you created a
0:23:43
separate one but yeah
0:23:46
and then you also have this hosted zone
0:23:49
you have a different hosted zone on your
0:23:51
personal account right
0:24:00
uh sorry i was just gonna ask does the
0:24:02
hosted zone you have here
0:24:04
share any of the characteristics of the
0:24:07
hosted zone you have on your own
0:24:10
personal aws account
0:24:23
and this one also i could basically and
0:24:30
and this hopefully
0:24:33
i don't want to take any chances
0:24:35
now at this point but i will no you can
0:24:37
do that with finesse
0:24:47
yeah so we we created a separate hosted
0:25:01
they've got a name server
0:25:08
that's something you get when
0:25:10
you create a hosted zone right
0:25:17
yes and then you had to add those to
0:25:22
um your domain provider
0:25:25
no so what we had to do is create
0:25:37
server exactly the same as this
0:25:41
in my personal account
0:25:44
oh so another name server record
0:25:47
with these values in your personal
0:25:52
that sub domain or does that not matter
0:26:01
what we did after this was done we
0:26:13
certificate manager
0:26:18
we were able to get the search so i'll
0:26:22
i mean that one as well acm
0:26:33
it just all seems so simple now
0:26:46
so this for this on domain so what we
0:26:50
was oh why does he say
0:26:55
he can't it's not allowed to say pending
0:27:12
oh i think that that was uh the so was
0:27:18
no it was done over here
0:27:25
minute i need to check
0:27:26
my personal account because i've got
0:27:49
what happened what's so wow
0:27:52
i should have said zayn i'm so excited
0:27:54
to work on the front end today let's go
0:28:02
i don't even want to know how this works
0:28:10
yeah it works great let's go
0:28:22
you know what might have happened i was
0:28:24
in the wrong region
0:28:28
yeah that must have been the issue oh
0:28:30
okay yeah yeah i was going to say
0:28:32
otherwise this is like quantum mechanics
0:28:36
where like you're observing it
0:28:39
and it's changing the outcome
0:28:43
i see you're right
0:28:46
trying to measure something and your
0:28:48
instrumentation is messing up the
0:28:56
i don't even want to say anything now to
0:29:07
all right okay so let's go back in there
0:29:11
know you know what i i've been on the
0:29:14
stream for like i don't know maybe okay
0:29:20
three or four days and i haven't seen
0:29:22
gective is he still around
0:29:25
actually i'm i'm gonna text him there is
0:29:29
uh everything okay
0:29:34
yeah it has actually been a while though
0:29:37
huh yeah i'll message him too
0:29:41
so yeah then we created this search for
0:29:50
this one only because we wanted to allow
0:30:02
like what the hell are you talking about
0:30:03
but yeah finally gone i mean
0:30:09
understand the wild card i have no idea
0:30:15
how this works across
0:30:17
two accounts with all these different
0:30:20
name server records and the dns records
0:30:24
it's just bizarre to me
0:30:27
especially with the wild card because
0:30:28
it's just it just seems like it should
0:30:32
oh but you have a specific scumba
0:30:38
so i guess when the
0:30:44
the networking machine
0:30:49
like it it it has its rules so basically
0:30:56
if there's a specific
0:30:58
subdomain then it'll ignore the wild
0:31:03
if like somebody's trying to access that
0:31:05
specific sub domain that you've
0:31:09
that's that's where i'm like how does
0:31:11
this work behind the scenes i guess
0:31:16
you know um okay i'll explain you
0:31:28
it's important that we oh you want to
0:31:33
do you know how um
0:31:44
okay and how we want this url
0:31:58
we will access this
0:32:00
url anywhere but if the user types in
0:32:04
this one we wanted to go we wanted to
0:32:07
redirect to this one
0:32:13
so because we want
0:32:25
because we want these both to work with
0:32:41
to work with https okay
0:32:46
if you forget this one come on
0:33:09
this means that anything we type in in
0:33:29
why would we type it it will redirect to
0:33:36
we need to search is
0:33:41
wired these both up
0:33:49
does that make sense
0:33:52
yeah yeah that makes sense that makes
0:33:56
basically for the most part it's to
0:34:01
case and then yeah like nobody's gonna
0:34:09
but yeah okay that makes sense
0:34:16
why we have star and the normal one as
0:34:21
so if you go back to cloudfront
0:34:27
show you another interesting grid that
0:34:45
see these two c names
0:34:48
so that's why i saw there's two cnames
0:34:55
even if you type any you would always go
0:35:08
scrambler because if we type in
0:35:11
scrambler it will still
0:35:13
go there or even if you type in
0:35:16
dot dot dot it will still go there
0:35:22
that is that makes sense now that does
0:35:32
uh understand if it's not making full
0:35:35
sense because yeah there are long moving
0:35:38
parts at the moment
0:35:40
yeah and um i mean i've messed around
0:35:43
with this stuff but to be honest i don't
0:35:46
even have a lot of network
0:35:53
it would be it would well yeah it seems
0:35:55
like you kind of know some stuff that i
0:35:57
don't but it would be nice at some point
0:36:00
in like 10 years if i went and learned
0:36:02
more about networking
0:36:04
yeah um well um that's
0:36:09
could happen but the reason why i know
0:36:13
just a little bit as in in one of my
0:36:17
employments i was say
0:36:22
computer science guy
0:36:24
gotcha and then i had to know coding
0:36:27
networking both e infrastructure as well
0:36:30
as in everything i mean you're you're a
0:36:33
back-end dev too right is that primarily
0:36:37
oh it's a full stack you're a full stack
0:36:47
like when you when you're at work do you
0:36:49
primarily like have you primarily worked
0:36:54
no no just oh really just anywhere yeah
0:36:58
at the moment i'm adding some ui
0:37:16
cool what do you what do you prefer what
0:37:18
do you prefer you prefer js or net
0:37:21
i prefer coding it can be any language
0:37:23
you don't care okay
0:37:28
all right cool so now that that is done
0:37:31
and what i'll basically do now
0:37:35
we will go into our dynamodb
0:37:40
gonna delete all the connection ids from
0:37:46
see if our connection ids work
0:38:00
tables okay tables yeah
0:38:02
ws connection id explore table
0:38:10
nothing here i will
0:38:13
send me the link create a board first
0:38:33
okay so is it gone there
0:38:36
one is there so now what i'm going to do
0:38:53
what if i told you i told you it gave me
0:39:01
i'll send you a line
0:39:06
i got a 404 not found code come on come
0:39:10
on tory don't do this
0:39:12
i'm serious here i'll share my screen
0:39:16
yeah i'm not messing with you here
0:39:23
you really have a full photo
0:39:26
i can't see your screen hang on yeah
0:39:29
that's it no such key the specified key
0:39:35
can you zoom in a bit please oh yeah
0:39:45
is that from cloudfront
0:39:52
uh that's another issue
0:39:55
okay this is not gonna work in that way
0:40:01
sorry i spoke to you that
0:40:03
he in that way she shouldn't have that's
0:40:06
cool man has it no i thought that next
0:40:10
you're right and you're right because
0:40:12
you know i like to play jokes
0:40:18
all right okay yeah so this works
0:40:29
let me check dynamodb and see if i buy
0:40:40
on your every board
0:40:50
contouring and board
0:41:05
okay so george has come through as well
0:41:09
which is fine and if you send that
0:41:14
i'm gonna try on my end and see if i get
0:41:18
same thing as yours
0:41:23
let's just have connections secure
0:41:29
blah blah certificate is valid
0:41:49
okay i'm having the same thing as well
0:42:05
i don't think it's either
0:42:08
because he's trying to find a file
0:42:11
in the s3 bucket called the board name
0:42:16
because if you see the array
0:42:19
that's what i meant
0:42:22
cloudfront or s3 okay
0:42:27
what do you think the problem is
0:42:30
you seem like you know what the problem
0:42:38
what is the problem coming because
0:42:43
it's understanding the board name
0:42:50
and then it's trying to find that file
0:42:54
but it's not able to so it's saying okay
0:42:57
i can't find it i can't give it to you
0:43:12
there's a problem with these redirects
0:43:14
up here do you see the url
0:43:17
right so this is your generic board page
0:43:20
but when you do that story
0:43:24
for a board or something you're going to
0:43:26
get a 404. so i think there's just some
0:43:32
redirecting that needs to happen
0:43:35
so that it actually
0:43:39
redirects this index
0:43:45
the board name to the index.html
0:43:51
or it updates the url honestly
0:43:56
um i work in a lot of
0:43:59
single page applications so
0:44:05
dealing with multi-page javascript
0:44:07
because i'm like only new know the new
0:44:12
i'm sure it's pretty simple
0:44:16
it must be pretty simple because um
0:44:20
you're right all we basically need to do
0:44:23
do a redirection because
0:44:28
as in do a redirection
0:44:33
make it recognize that yeah we're still
0:44:36
opening an index to his
0:44:44
yeah because all that i mean you land on
0:44:47
this page and then all the data is
0:44:49
pulled in from the database right yeah
0:44:53
so it should be able to
0:44:56
read the board name from the url param
0:45:00
or something like that or the path the
0:45:05
and then use that as the as the board
0:45:13
the html page that's actually
0:45:18
used is this index side html
0:45:28
where would you do that
0:45:30
do you do that and i think you can do
0:45:33
i think you can do that in s3
0:45:43
like where would you set up the
0:45:45
redirects i think you would set them up
0:45:46
in s3 to be honest
0:45:50
but i don't have enough i mean i'm very
0:45:53
comfortable with netlify
0:45:59
but i think i've watched some stuff on
0:46:03
those redirects and i
0:46:06
think you can do it in s3
0:46:11
well that's where the static site is
0:46:13
being served up anyways right so i feel
0:46:16
like that's the first place we should
0:46:20
you can do the redirects on there
0:46:24
okay so let's go into s3 then and check
0:46:28
if we can do something from there
0:46:31
you will definitely probably need to add
0:46:32
some javascript code though to that page
0:46:40
the path name if you're not already
0:46:47
you know so if it says tory board
0:46:57
i'm just thinking it's well at the
0:47:02
look at that sorry i feel like this
0:47:08
now you're like let's go let's go put it
0:47:11
up on the internet
0:47:18
no i mean the actual purpose of this
0:47:22
just to check as in our websocket
0:47:28
and the purpose have has been
0:47:41
what i might basically do is i might
0:47:44
just as in allow certain users
0:47:47
as in to access this bucket
0:48:03
what url are you talking about
0:48:06
i'm so scrambled or recorded or deaf i
0:48:11
because the purpose of this has been
0:48:13
accomplished as in what we wanted to
0:48:16
test but there's a problem
0:48:21
yeah so i'm thinking them i might just
0:48:23
um take it off a bit uh until we fix the
0:48:27
problem and then come back to
0:48:29
as in the like the
0:48:51
uh i'm thinking how to approach this now
0:48:59
good old google search
0:49:13
static redirect rules
0:49:16
that sounds promising
0:49:18
configuring a page redirect that's what
0:49:28
i'm sorry i don't know why my internet
0:49:30
is it's either my computer is being
0:49:32
choppy or my internet's being slow
0:49:48
it's probably my computer
0:50:08
cool perfect redirect requests from your
0:50:10
buckets website endpoint to another
0:50:14
configure redirection rules
0:50:16
conditional redirects
0:50:21
all right redirect to website import
0:50:25
under buckets choose properties under
0:50:27
stack website hosting choose edit
0:50:30
so there should be a breakdown we need
0:50:34
well if somebody goes to
0:50:41
well there is no tory board
0:50:48
so how are they gonna get to the
0:50:57
that's what that's what the redirect
0:50:58
should do so basically it's like
0:51:03
with cloudfront and route 53 like
0:51:07
people were trying to go to
0:51:09
a domain like the wild card
0:51:12
so here you should be able to set up
0:51:14
redirect rules so that
0:51:16
basically based on the path
0:51:21
um which is like zane
0:51:23
board it will go to your next html
0:51:28
if you're doing that in that way how
0:51:30
we're gonna save this session then
0:51:33
because it's it's all based on this
0:51:35
session as in storyboards zayn board
0:51:47
um this is actually a good example but
0:51:51
it should redirect and then
0:51:59
with the parameter
0:52:02
not the param the path name the so the
0:52:06
name is storyboard or zane board right
0:52:09
which is the same as the board name
0:52:16
so basically when a user lands on that
0:52:19
page there should be some javascript
0:52:22
that picks up that path name from the
0:52:28
this is the board name i got it from the
0:52:30
path name and i'm gonna go fetch the
0:52:34
data from dynamodb for this board
0:52:41
also at the same time the websocket will
0:52:46
why are we fetching the data
0:52:49
don't you need the board data
0:52:53
that's not what we're trying to do at
0:52:57
okay well i was maybe i'm thinking ahead
0:53:00
but if somebody had a bunch of
0:53:03
cards that they already saved and then
0:53:05
somebody joined the session
0:53:12
maybe kind of uh we want to step back a
0:53:20
what we're trying to do is only um
0:53:29
and you send the url to another person
0:53:34
that board opens on index.html
0:53:40
exactly yeah so the only way to get that
0:53:47
sending a request to dynamodb to say do
0:53:51
i have a board named
0:53:53
tory board or zane board whatever board
0:53:57
i got from the url and then it will pull
0:54:04
i see what you mean or you could just
0:54:09
you could just take the i mean
0:54:12
eventually that's the direction you want
0:54:17
in the beginning you could just take the
0:54:20
path name from the url and just put it
0:54:24
but i don't know how your i mean i could
0:54:27
take a look at the code on the front end
0:54:28
and figure out where the board name is
0:54:30
coming from i don't know if it's coming
0:54:32
from dynamodb or if it's coming from the
0:54:44
you're really as in good at so
0:54:46
i'll i'll leave it
0:54:49
to you um we can go in in the board
0:54:53
so your seems uh as it sounds like you
0:54:57
know exactly what we can do to
0:55:00
potentially um solve this
0:55:07
um for some reason
0:55:09
i'm kind of slacking
0:55:11
as in i'm not understanding
0:55:17
what we're doing um
0:55:22
just a few dots i'm missing from my
0:55:25
links so if you can as in explain me
0:55:30
so here's yeah here's this here's this
0:55:33
basic um example that they have right
0:55:44
uh this is this is like a rename
0:55:49
where's the routing one
0:55:52
okay let's see if they got some examples
0:55:56
that are just very straightforward
0:56:04
um what do they got here
0:56:26
all right well you can kind of imagine
0:56:30
so here's a rule for like i mean
0:56:33
honestly this is a rule for a deleted
0:56:35
folder to a page but the same thing
0:56:38
really applies so let's say
0:56:49
um s so when somebody tries to go to
0:56:54
on s3 s3 looks at what the user is
0:56:57
trying to go to right
0:56:59
and instead of images
0:57:02
let's just say there's a board named
0:57:06
and i don't know maybe this key prefix
0:57:08
thing is different maybe it's suffix or
0:57:10
something i don't know right or whatever
0:57:13
the concept is the same yeah and then
0:57:16
it's gonna you're gonna do a redirect
0:57:18
and you're gonna replace it
0:57:23
or wherever you wanna send them
0:57:27
and then hopefully too and there should
0:57:29
be a way where you can retain
0:57:34
the board name in the url instead of the
0:57:37
user seeing like oh
0:57:40
index.html you know
0:57:43
instead of them seeing
0:57:54
they will see you know the board name
0:57:56
like you want them to
0:57:59
but they will actually be redirected to
0:58:07
ah i i see i see so even though they're
0:58:11
seeing the board name uh as as the path
0:58:14
but they'll be directed to h i in
0:58:18
index.html and then
0:58:20
once we land on that page we can just do
0:58:26
logic where we're telling it to
0:58:29
get everything for that board name
0:58:32
and bring it back to us
0:58:35
yeah so then when the user lands on that
0:58:41
then all you have to do is
0:58:42
window.location.path
0:58:50
pretty much right right right yeah that
0:58:53
makes sense though yeah i think i
0:58:55
understand you know
0:58:58
i think the magic i don't know if with
0:59:00
cloudfront but i think the magic happens
0:59:02
in s3 but because there's cloud front
0:59:05
maybe there's something cloud front has
0:59:07
to do too i'm not 100
0:59:09
yeah yeah that would make absolute sense
0:59:25
yeah it's a brand new concept man me too
0:59:28
me too luckily i watched uh a video from
0:59:35
front end masters and probably i i
0:59:38
briefly touched on redirects in
0:59:42
the certifications probably
0:59:44
and so i kind of like
0:59:47
collect that from my brain
0:59:49
the most common example of a redirect is
0:59:55
right right so you like
0:59:59
say you moved some pages like you moved
1:00:02
the urls to something
1:00:04
different and then
1:00:06
google already indexed those pages
1:00:10
but and so when somebody clicks on it
1:00:12
you don't want to send them to a 404 you
1:00:14
want to like redirect them to the new
1:00:20
okay that's actually pretty cool yeah i
1:00:23
like that i like that project
1:00:27
come back to that we've finished
1:00:32
actually he's not going to be making it
1:00:35
tomorrow he already told me so if you
1:00:37
want to jump back home
1:00:42
you're more than welcome to and
1:00:52
all right perfect man
1:00:54
um yeah so i it's been a really good
1:00:58
session guys and we managed to as in
1:01:02
kind of go through how we solved the
1:01:04
generating of the sl serve for our
1:01:08
custom domain and also pointed the
1:01:11
custom domain to our uh s3 and we also
1:01:17
as in a kind of a recap but now we're
1:01:20
facing another challenge which will be
1:01:24
really exciting to solve
1:01:27
about redirection so if you if you want
1:01:32
take on this challenge and forge forward
1:01:36
um join us tomorrow
1:01:50
that's the one all right guys have a
1:01:52
great year very much tomorrow
1:01:55
have a great night