1
00:00:06,880 --> 00:00:14,600
I live inside my own world of 
make believe kids screaming in 

2
00:00:14,720 --> 00:00:21,760
the craters profanities. 
I see God through ice covered in

3
00:00:21,880 --> 00:00:27,240
ink and then cross. 
Brought to you by refined dot 

4
00:00:27,240 --> 00:00:29,440
DEV Open source retool for 
Enterprise. 

5
00:00:31,160 --> 00:00:32,720
I I think that was kind of 
funny. 

6
00:00:32,720 --> 00:00:36,360
It kind of somewhat transitioned
how I wanted to. 

7
00:00:36,360 --> 00:00:38,160
So let me let me bring up the 
banner. 

8
00:00:38,160 --> 00:00:40,840
Welcome back, perfect peeps to 
code with coding cat. 

9
00:00:40,840 --> 00:00:44,760
First of all, So today we're 
going to talk about refine. 

10
00:00:44,760 --> 00:00:46,960
It's an open source tool for 
retool. 

11
00:00:47,960 --> 00:00:51,720
I think my special guest, do you
want to introduce yourself and 

12
00:00:51,720 --> 00:00:54,480
and give us a like a, a 5 minute
on refine? 

13
00:00:55,640 --> 00:00:59,240
Yeah, hello, I'm Botwan. 
Technically, that's Refine. 

14
00:01:00,320 --> 00:01:03,480
Today I'm going to introduce 
Refine framework and we are 

15
00:01:03,480 --> 00:01:08,320
going to build a simple 
application to show about 

16
00:01:08,320 --> 00:01:12,960
Refine. 
But first of all, what's Refine?

17
00:01:13,400 --> 00:01:18,840
Refine is an open source 
framework for building data 

18
00:01:18,840 --> 00:01:24,320
intensive applications, mostly 
like internal applications, 

19
00:01:24,320 --> 00:01:30,640
dashboards, admin panels. 
It's React based framework and 

20
00:01:30,680 --> 00:01:35,680
like at the moment we are quite 
popular in at least React open 

21
00:01:35,680 --> 00:01:42,560
source, open source. 
Then we have like 20 K GitHub 

22
00:01:42,560 --> 00:01:48,760
stars, 15K developers, also more
than 10,000 deployed 

23
00:01:48,760 --> 00:01:52,360
applications and already on 
production. 

24
00:01:53,360 --> 00:01:58,680
How we started we find is it's 
been 2 years since we are 

25
00:01:58,720 --> 00:02:04,240
developing refined full time. 
We are backed by European VCs 

26
00:02:04,720 --> 00:02:10,360
initially and last year we are 
accepted to Y Combinator summer 

27
00:02:10,360 --> 00:02:12,360
batch. 
So. 

28
00:02:12,800 --> 00:02:15,840
I have to ask more about your Y 
Combinator experience. 

29
00:02:15,840 --> 00:02:19,520
That's pretty awesome. 
Yeah. 

30
00:02:20,160 --> 00:02:27,840
So yeah, it was like last, last 
investment we got and then like 

31
00:02:27,840 --> 00:02:32,080
we have some runway. 
How it started is actually we 

32
00:02:32,800 --> 00:02:37,400
first version of refine started 
from our own needs. 

33
00:02:37,400 --> 00:02:45,640
So we didn't want to like build 
the tool to like, I don't know, 

34
00:02:45,640 --> 00:02:50,800
be famous or get attraction. 
But initially we were constantly

35
00:02:50,800 --> 00:02:55,600
building enterprise applications
for big companies. 

36
00:02:55,840 --> 00:02:59,400
So most of the projects of 
course need some kind of 

37
00:02:59,760 --> 00:03:03,680
internal web app and dashboard 
and admin panel. 

38
00:03:04,480 --> 00:03:08,160
So we we were constantly 
building this kind of 

39
00:03:08,160 --> 00:03:10,480
application. 
So we thought like there should 

40
00:03:10,480 --> 00:03:16,040
be easier and better way to do 
that because existing solutions,

41
00:03:16,040 --> 00:03:18,360
low codes, no code and stuff 
like that. 

42
00:03:18,360 --> 00:03:20,160
They're nice and all in the 
beginning. 

43
00:03:20,160 --> 00:03:27,240
But if you have more complex 
requirements and so you they 

44
00:03:27,240 --> 00:03:30,520
cannot like really help you in 
the long run. 

45
00:03:30,520 --> 00:03:35,640
So initially they are nice first
a week, but as complexity of the

46
00:03:35,640 --> 00:03:40,480
application grows, they cause 
more trouble than it's worth. 

47
00:03:40,600 --> 00:03:45,240
So first version of Refine was 
internal library. 

48
00:03:45,920 --> 00:03:49,520
By the way, as a company we 
already had this habit of 

49
00:03:49,880 --> 00:03:53,200
publishing open source packages 
before You find we have more 

50
00:03:53,200 --> 00:03:57,880
than 15 packages with more than 
1,000,000 downloads on PM and PM

51
00:03:57,880 --> 00:04:01,120
already. 
So this was started. 

52
00:04:01,120 --> 00:04:05,560
OK, let's make it good enough. 
So share with community. 

53
00:04:06,440 --> 00:04:10,320
First version of Refine was kind
of good but not quite there. 

54
00:04:10,760 --> 00:04:16,519
So it was like first iteration. 
So second iteration we wanted to

55
00:04:16,519 --> 00:04:19,120
address issues in the version 
one. 

56
00:04:19,480 --> 00:04:23,320
For example, this is where we 
decided to make refined headless

57
00:04:24,720 --> 00:04:29,600
because core of the refine is 
React based but agnostic. 

58
00:04:29,680 --> 00:04:32,760
So you can mix and match 
different libraries for 

59
00:04:33,040 --> 00:04:36,400
different applications. 
Like you can use Material UI, 

60
00:04:36,400 --> 00:04:39,760
you can use Ant design, 
Tailwind, whatever you want. 

61
00:04:40,000 --> 00:04:45,080
Initially it wasn't like that. 
So we once we decided to make 

62
00:04:45,080 --> 00:04:48,600
refined headless. 
So then we follow this mix and 

63
00:04:48,600 --> 00:04:53,680
match approach that you are not 
locked into certain library or 

64
00:04:53,680 --> 00:04:57,720
vendor or anything. 
So you can just still deliver 

65
00:04:57,720 --> 00:05:02,080
things fastly but without 
compromising quality and 

66
00:05:02,080 --> 00:05:07,600
flexibility. 
This was our initial position to

67
00:05:07,880 --> 00:05:13,720
with that because low code, 
first of all, there is no like 

68
00:05:13,720 --> 00:05:17,360
git, git up version control. 
You cannot like someone breaks 

69
00:05:17,360 --> 00:05:20,800
something and you cannot easily 
know who did it. 

70
00:05:20,800 --> 00:05:23,400
And there is no like normal 
pipeline. 

71
00:05:23,400 --> 00:05:28,000
But why low code is good for 
some use cases because you can 

72
00:05:28,000 --> 00:05:34,480
quickly build something. 
So our target is to OK, let's 

73
00:05:34,480 --> 00:05:39,000
still quickly build something 
without compromising flexible. 

74
00:05:39,400 --> 00:05:42,920
So we still own the code, we can
do whatever we want, but we 

75
00:05:42,920 --> 00:05:46,560
still deliver it fast. 
So because enterprise 

76
00:05:46,560 --> 00:05:49,400
requirements are high, like you 
need to add authentication, not 

77
00:05:49,400 --> 00:05:53,560
only also authorization, some 
users cannot edit, some users 

78
00:05:54,000 --> 00:05:58,600
cannot delay it and things like 
that, then you need to in the 

79
00:05:58,600 --> 00:06:00,680
UI. 
Developers usually don't like 

80
00:06:00,680 --> 00:06:05,280
that actually. 
But one maybe a good thing about

81
00:06:05,280 --> 00:06:08,880
local that if you are not a 
technical person, you can still 

82
00:06:08,880 --> 00:06:12,280
do something, but up to some 
point, again, for example, if 

83
00:06:12,280 --> 00:06:15,600
you do something wrong, 
obviously some technical people 

84
00:06:15,600 --> 00:06:17,640
need to spend more time fixing 
that. 

85
00:06:18,520 --> 00:06:24,440
Is a problem. 
So in the long run we like low 

86
00:06:24,440 --> 00:06:27,720
code, no code. 
We have different approach, but 

87
00:06:27,840 --> 00:06:32,040
benefits are are the same. 
And we also wanted to continue 

88
00:06:32,040 --> 00:06:36,680
these benefits in the long run, 
not just first MVP, first 

89
00:06:36,680 --> 00:06:41,360
version or something like that. 
So yeah, basically story of 

90
00:06:41,360 --> 00:06:44,080
refine, it's that. 
Yeah, I love it. 

91
00:06:44,560 --> 00:06:49,320
I wanted to show off this too, 
just kind of in my mind, like 

92
00:06:49,320 --> 00:06:52,120
pictures always help everything.
And this, this really shows 

93
00:06:52,120 --> 00:06:55,920
where kind of refine comes into 
play between the authentication 

94
00:06:55,920 --> 00:06:58,600
and your back end and front end 
platforms as well. 

95
00:06:58,600 --> 00:07:02,560
So it's pretty cool. 
I do want to demo. 

96
00:07:02,560 --> 00:07:05,920
Well, let me show you a couple 
different kind of things that 

97
00:07:05,920 --> 00:07:08,480
refine can do out here. 
So different dashboards. 

98
00:07:09,000 --> 00:07:12,240
By the way, I love whoever did 
the the front end on this site. 

99
00:07:12,240 --> 00:07:16,680
It's it's super dope. 
So here is kind of some of the 

100
00:07:16,680 --> 00:07:19,040
breakdowns. 
So it gets into like how you can

101
00:07:19,040 --> 00:07:22,200
actually specify the menu items 
and of course it's out in the 

102
00:07:22,200 --> 00:07:26,720
the react side of things here 
and just use list and how you 

103
00:07:26,720 --> 00:07:29,720
can pull in data. 
So it's really cool to be able 

104
00:07:29,720 --> 00:07:34,440
to use this low code, no code 
approach to things and like be 

105
00:07:34,440 --> 00:07:37,560
able to have all of that data 
saved just as you were saying. 

106
00:07:38,760 --> 00:07:43,040
The cool part down here, if you 
look at all of these different 

107
00:07:43,080 --> 00:07:47,120
connectivity points between 
front end UIS and and what you 

108
00:07:47,120 --> 00:07:51,520
can actually abstract this into 
with next GS and remix. 

109
00:07:51,560 --> 00:07:54,720
I mean, it's just endless. 
So it's really, really cool to 

110
00:07:54,720 --> 00:07:56,520
be able to pull all of these 
different ones in. 

111
00:07:58,240 --> 00:08:04,520
You also are kind enough to set 
up a little demo site for us on 

112
00:08:04,520 --> 00:08:08,480
what we'll be building today. 
So today this is, this is kind 

113
00:08:08,480 --> 00:08:12,520
of, it's obviously somewhat 
generic, but it still gives us 

114
00:08:12,520 --> 00:08:16,280
our filters and things like that
and allows us to build this in 

115
00:08:16,560 --> 00:08:19,880
60 minutes while still being 
able to learn more about refine 

116
00:08:19,880 --> 00:08:22,320
and things like that. 
And we'll also include 

117
00:08:23,080 --> 00:08:26,480
authentication as we kind of 
come into it here as well. 

118
00:08:27,800 --> 00:08:31,640
So that's what we're going to 
build as we go through it. 

119
00:08:31,920 --> 00:08:35,159
I am kind of curious how you got
started with refine though. 

120
00:08:35,159 --> 00:08:38,200
Do you have just a couple 
minutes before we shift gears? 

121
00:08:38,600 --> 00:08:41,960
I'm I'm curious about your 
journey and what it takes to be 

122
00:08:41,960 --> 00:08:47,320
a refined dev. 
Yeah, it's, at least for me, 

123
00:08:47,960 --> 00:08:51,640
pretty exciting because I, I 
will. 

124
00:08:51,920 --> 00:08:54,720
I have some open source 
packages, unpublished 

125
00:08:54,720 --> 00:08:59,320
repositories and all like I, I 
already allowed to do some open 

126
00:08:59,320 --> 00:09:05,120
source and on top of that, you 
do it with your team and sharing

127
00:09:05,120 --> 00:09:08,680
the similar ambitions. 
And it's really exciting 

128
00:09:08,680 --> 00:09:14,880
actually for me. 
But of course there is like, not

129
00:09:14,880 --> 00:09:18,320
only we are not only coding, but
there is also community part of 

130
00:09:18,320 --> 00:09:21,480
that like giving support to 
people as much as possible. 

131
00:09:22,360 --> 00:09:28,360
But of course, we cannot like 
provide support for 1000 users 1

132
00:09:28,360 --> 00:09:32,880
by 1. 
So we try to automate most of 

133
00:09:32,880 --> 00:09:37,840
the things and actually we try 
to make it so clear and obvious 

134
00:09:37,840 --> 00:09:43,680
in our documentation, in our 
examples, wherever we we want 

135
00:09:43,680 --> 00:09:46,400
people to not need to ask 
questions. 

136
00:09:46,440 --> 00:09:49,960
So like, because if people 
asking the same question over 

137
00:09:49,960 --> 00:09:53,520
and over again, this means like 
we couldn't explain the concept 

138
00:09:53,520 --> 00:09:58,240
or something nicely. 
So that's actually why we 

139
00:09:58,240 --> 00:10:02,440
recently created guides in our 
documentation, like we have API 

140
00:10:02,440 --> 00:10:07,600
reference if you want to get 
like just basically interfaces 

141
00:10:07,600 --> 00:10:11,720
what they do explain. 
But in our guides, we actually 

142
00:10:12,000 --> 00:10:15,680
explain the concepts behind 
decisions, how we can mix and 

143
00:10:15,680 --> 00:10:17,640
match. 
So once you go through the 

144
00:10:17,640 --> 00:10:22,280
guides, yeah, general concepts 
for example, goes through all of

145
00:10:22,280 --> 00:10:26,480
them explain. 
So idea behind this guides is 

146
00:10:26,480 --> 00:10:31,800
that once you read through them,
you will be able to answer your 

147
00:10:31,800 --> 00:10:36,760
own questions by reading them 
because you should have context 

148
00:10:36,760 --> 00:10:42,600
and like generally architecture.
So it should be clear. 

149
00:10:42,880 --> 00:10:48,240
Hopefully actually after this, 
like we kind of got get slightly

150
00:10:48,240 --> 00:10:53,680
less questions about we have 
Discord community, of course, 

151
00:10:54,400 --> 00:10:59,120
and we also try to provide 
support there to people. 

152
00:10:59,480 --> 00:11:03,960
So like it's generally exciting.
And also, it's not like working 

153
00:11:03,960 --> 00:11:08,120
with private repository that no 
one will ever see. 

154
00:11:08,120 --> 00:11:13,040
And we can change the thing the 
way you want and like, because 

155
00:11:13,040 --> 00:11:18,800
you cannot randomly decide to 
delete something and I want to 

156
00:11:18,800 --> 00:11:22,320
rename this, it's a bad naming. 
So let's get rid of that. 

157
00:11:22,320 --> 00:11:26,720
You cannot do that because like 
maybe 400,000 downloads. 

158
00:11:26,720 --> 00:11:30,640
So you don't want to break 
people thought obviously. 

159
00:11:30,640 --> 00:11:35,920
So you, you need to do like more
minor improvements continually 

160
00:11:36,160 --> 00:11:39,720
and without compromising, of 
course, features and whilst 

161
00:11:39,720 --> 00:11:43,160
still improving. 
So like, long, Long story short 

162
00:11:43,160 --> 00:11:46,760
is like really good experience 
for me actually. 

163
00:11:47,320 --> 00:11:48,480
So yeah. 
I love it. 

164
00:11:48,680 --> 00:11:50,680
That's, that's really cool. 
OK. 

165
00:11:50,680 --> 00:11:53,880
We're going to take a quick ad 
breaks to introduce folks a 

166
00:11:53,880 --> 00:11:57,760
little bit more about Refine and
then when we come back, we'll be

167
00:11:57,760 --> 00:12:02,000
building our application. 
Refine is an open source React 

168
00:12:02,000 --> 00:12:05,320
framework for enterprise. 
It's a headless solution for all

169
00:12:05,320 --> 00:12:09,000
types of CRUD heavy applications
such as admin panels, 

170
00:12:09,200 --> 00:12:14,040
dashboards, and internal tools. 
Low code tools shine initially, 

171
00:12:14,200 --> 00:12:17,040
but they lack the required 
flexibility for complex use 

172
00:12:17,040 --> 00:12:20,280
cases. 
Teams can choose to start from 

173
00:12:20,280 --> 00:12:23,960
scratch for greater control, but
this often results in project 

174
00:12:23,960 --> 00:12:28,720
delays and technical debt. 
Refine is the sweet spot between

175
00:12:28,720 --> 00:12:33,040
the two alternatives. 
With Refine, teams can rapidly 

176
00:12:33,040 --> 00:12:36,360
build robust applications 
without compromising 

177
00:12:36,360 --> 00:12:46,040
flexibility. 
Sweet. 

178
00:12:46,360 --> 00:12:52,040
Thank you so much, Swan. 
All right, so that's everything 

179
00:12:52,040 --> 00:12:53,880
we know about Refine. 
And now we're going to start 

180
00:12:53,880 --> 00:12:56,080
building the application that we
showed off. 

181
00:12:56,080 --> 00:12:58,400
And just if you're just now 
joining, I just want to show 

182
00:12:58,400 --> 00:13:02,240
that one more time. 
So here is the app that we'll be

183
00:13:02,400 --> 00:13:06,120
building with Refine. 
So you're going to walk me 

184
00:13:06,120 --> 00:13:09,440
through, I hope and we'll we'll 
get started. 

185
00:13:09,440 --> 00:13:13,160
I know you kind of gave me a 
couple, a couple cheat commands 

186
00:13:13,160 --> 00:13:15,400
here. 
So I'm going to pop open VS Code

187
00:13:15,400 --> 00:13:23,040
real quick and then. 
So just guide me along at this 

188
00:13:23,040 --> 00:13:26,520
point and I'll copy and paste if
you if you want anything of 

189
00:13:26,520 --> 00:13:32,400
those commands added to. 
So let's start by initializing 

190
00:13:32,400 --> 00:13:38,160
the application. 
So I want to clarify that this 

191
00:13:38,200 --> 00:13:41,360
application we're going to build
like we have many examples like 

192
00:13:41,360 --> 00:13:45,240
that, but for demonstration 
purposes, we are going to build 

193
00:13:45,240 --> 00:13:49,560
it from scratch with some help 
from our help from our 

194
00:13:49,560 --> 00:13:54,520
documentation and like our CLI 
which saves time. 

195
00:13:54,760 --> 00:13:59,280
But we will start from scratch 
to better explain the concepts 

196
00:13:59,960 --> 00:14:03,320
behind that. 
Yeah, first thing we're going to

197
00:14:03,320 --> 00:14:05,760
do is we already showed the 
application. 

198
00:14:06,080 --> 00:14:11,360
So let's start creating a new 
application with NPM create 

199
00:14:11,360 --> 00:14:14,800
refine app. 
And we, we are going to use 

200
00:14:14,800 --> 00:14:20,920
starter with template. 
So this template just what you 

201
00:14:20,920 --> 00:14:25,680
get if you create a new 
application with with but plus 

202
00:14:25,720 --> 00:14:30,920
edit, refine core package. 
I love that. 

203
00:14:30,920 --> 00:14:34,400
That's so cool. 
I don't know why but I always 

204
00:14:34,400 --> 00:14:37,360
geek out over like CLI, like 
artistry. 

205
00:14:37,360 --> 00:14:42,160
It's amazing to me. 
Yeah, this is kind of old 

206
00:14:42,160 --> 00:14:44,560
school. 
And so we we want to believe 

207
00:14:44,560 --> 00:14:48,840
that and like combine it with 
this deal with it meme. 

208
00:14:50,600 --> 00:14:54,960
That's really. 
Cool, I'll do code and then dot 

209
00:14:54,960 --> 00:14:57,960
dash. 
Nope, sorry slash dot slash. 

210
00:14:59,320 --> 00:15:02,880
And then Dash R does it 
recursively. 

211
00:15:02,960 --> 00:15:06,520
So there we go. 
Awesome. 

212
00:15:06,520 --> 00:15:09,560
So it's got our nice little V 
project going on here. 

213
00:15:09,560 --> 00:15:13,560
I see AV config our source 
files, it's got app dot TSX. 

214
00:15:14,360 --> 00:15:20,200
It's pretty much empty, so let's
just start by starting the 

215
00:15:20,400 --> 00:15:25,280
application. 
Let's go step by step. 

216
00:15:25,280 --> 00:15:33,320
MPM round dev you can say cool, 
so now we should have a server 

217
00:15:33,320 --> 00:15:38,120
running already. 
Of course, opened it in the 

218
00:15:38,120 --> 00:15:40,640
wrong window. 
One second, there we go. 

219
00:15:41,640 --> 00:15:47,920
Yeah, now we have like nice 
welcome page without anything 

220
00:15:48,800 --> 00:15:51,000
actually. 
So we are going to start 

221
00:15:51,000 --> 00:15:56,440
building in this application. 
We are going to use RAP router 

222
00:15:56,720 --> 00:16:02,440
for routing because we will have
multiple pages UI library we are

223
00:16:02,440 --> 00:16:06,440
going to use and design. 
It's one of our supported UI 

224
00:16:06,440 --> 00:16:10,400
libraries. 
So I want to explain this 

225
00:16:10,400 --> 00:16:14,080
concept with supported. 
Sometimes people get impression,

226
00:16:14,840 --> 00:16:17,200
don't you support Tailwind? 
Don't you support that? 

227
00:16:17,480 --> 00:16:21,800
Actually these libraries just 
are breach connection between 

228
00:16:22,160 --> 00:16:27,720
and design and our refined core.
So they are kind of bindings. 

229
00:16:28,000 --> 00:16:32,440
But in theory you can do the 
same thing with just using core.

230
00:16:32,680 --> 00:16:38,200
But this for example and design 
integration just saves us some 

231
00:16:38,200 --> 00:16:42,560
time, which we will show. 
So let's start with doing our 

232
00:16:42,560 --> 00:16:47,880
first integration routing. 
You can run MPM, run, refine, 

233
00:16:47,920 --> 00:16:57,000
add integration. 
So let's go with React Router. 

234
00:16:57,360 --> 00:17:04,800
OK. 
So we can check the DIF to give 

235
00:17:04,800 --> 00:17:08,920
idea like we could actually 
build it ourselves, just this is

236
00:17:08,920 --> 00:17:12,440
just to save time and. 
Yeah, so it looks like it just 

237
00:17:12,599 --> 00:17:16,440
added React Router 6 and React 
Dom Router Dom. 

238
00:17:16,440 --> 00:17:21,640
Yeah, this is like we have 
router provider because we find 

239
00:17:21,640 --> 00:17:24,240
as I mentioned before refine 
core is headless. 

240
00:17:24,599 --> 00:17:27,160
So for next chase we have 
refined them. 

241
00:17:27,160 --> 00:17:30,000
Next chase router. 
For remix we have Remix router 

242
00:17:30,000 --> 00:17:34,840
and this is Rev router. 
What it does actually, it helps 

243
00:17:34,840 --> 00:17:41,320
us understand resources, routes 
and their relationships with the

244
00:17:41,400 --> 00:17:46,400
data, underlying data and pages 
and many other features. 

245
00:17:46,520 --> 00:17:49,600
We are going to continue with 
that in a moment. 

246
00:17:49,600 --> 00:17:53,720
So basically what it does, what 
it did is just rip browser 

247
00:17:53,720 --> 00:17:59,160
router, refine, we pass router 
provider and we still have index

248
00:17:59,920 --> 00:18:05,600
as index route as welcome page. 
One thing I wanted you to do, I 

249
00:18:05,600 --> 00:18:09,840
will explain it later, maybe 
line 12, we can move it into 

250
00:18:11,440 --> 00:18:16,280
section 9 section. 
OK, OK, now we can see the 

251
00:18:16,280 --> 00:18:17,960
application. 
Nothing should change. 

252
00:18:19,080 --> 00:18:23,040
We will see that. 
But for example, we edit catch 

253
00:18:23,040 --> 00:18:25,120
all route. 
For example, if you go to random

254
00:18:25,120 --> 00:18:28,520
route, you should see some error
page. 

255
00:18:28,880 --> 00:18:31,840
And this is our error page from 
core package. 

256
00:18:32,000 --> 00:18:34,520
So let's continue with Ant 
design integration. 

257
00:18:34,520 --> 00:18:38,640
Awesome. 
OK, you can run the same comment

258
00:18:39,280 --> 00:18:42,880
and this time let's yeah go with
Ant design. 

259
00:18:56,800 --> 00:18:59,520
Nice, I probably should have 
committed. 

260
00:19:02,080 --> 00:19:07,200
Yeah. 
So if we check app TS6 again, so

261
00:19:07,200 --> 00:19:10,120
one thing's different. 
If you go back to browser for 

262
00:19:10,120 --> 00:19:14,520
example, now we should have a 
better error page. 

263
00:19:14,920 --> 00:19:18,600
It's following Ant design, using
Ant design components and 

264
00:19:18,600 --> 00:19:20,600
everything. 
As I mentioned, you can build it

265
00:19:20,600 --> 00:19:24,200
yourself, but just save time. 
And on the left side you see a 

266
00:19:24,480 --> 00:19:29,440
cider with nothing in it for now
and with default title and all. 

267
00:19:29,680 --> 00:19:34,240
And we are going to continue 
building that one. 

268
00:19:35,400 --> 00:19:40,640
So yeah, if you go back to code 
again, of course it's well 

269
00:19:40,640 --> 00:19:44,120
complete. 
Let's comment out notification 

270
00:19:44,120 --> 00:19:48,120
provider, it's line 23 at the 
bottom. 

271
00:19:48,120 --> 00:19:53,200
Yeah, we will enable it later, 
but I want to show why, why it's

272
00:19:53,200 --> 00:19:57,240
useful in the future. 
So next thing we're going to do,

273
00:19:57,240 --> 00:20:04,400
let me check the. 
And I think you had told me like

274
00:20:04,400 --> 00:20:06,800
a lot of this is in a tutorial 
in Quick Start. 

275
00:20:06,800 --> 00:20:08,680
Not necessarily exactly, but 
like. 

276
00:20:08,680 --> 00:20:11,280
You can find a lot of this 
information in here as well. 

277
00:20:12,000 --> 00:20:14,280
Yeah, Yeah, exactly. 
Cool. 

278
00:20:14,560 --> 00:20:20,400
So we, we actually, my colleague
Ali, he built a great tutorial 

279
00:20:21,000 --> 00:20:24,920
and like not only explaining 
concepts really good, but it's 

280
00:20:24,920 --> 00:20:30,600
also like there are a lot of 
great engineering stuff going on

281
00:20:30,600 --> 00:20:34,080
there because there are 
questions and if they cannot 

282
00:20:34,080 --> 00:20:39,400
answer, they there's a button to
fix the code. 

283
00:20:39,440 --> 00:20:43,160
And then code is actually real 
time code reloads the page. 

284
00:20:43,160 --> 00:20:47,560
And like if you do something, 
it's not just mock up that stays

285
00:20:47,560 --> 00:20:49,720
there. 
So basically you can write whole

286
00:20:49,720 --> 00:20:52,640
application there. 
So. 

287
00:20:52,880 --> 00:20:56,880
We do have one quick question 
now while we're here, what about

288
00:20:56,880 --> 00:21:00,040
next JS is app directory router 
support? 

289
00:21:00,040 --> 00:21:04,200
Do you guys have that already? 
Yeah, actually we recently 

290
00:21:04,200 --> 00:21:07,600
released this app router 
support. 

291
00:21:08,800 --> 00:21:14,200
There there is an example in 
examples directory with next JS 

292
00:21:15,040 --> 00:21:17,360
project is already using app 
router. 

293
00:21:17,800 --> 00:21:22,640
But at the moment we don't have 
like for example, at some parts 

294
00:21:22,640 --> 00:21:26,000
you need to do use client 
because we are trying to catch 

295
00:21:26,000 --> 00:21:32,720
up with community here. 
If you go to SRC folder, you're 

296
00:21:32,720 --> 00:21:35,640
going to see app routes there. 
Yeah. 

297
00:21:35,800 --> 00:21:41,920
So it's it's using layout TS6 
and of course there are some. 

298
00:21:42,440 --> 00:21:44,560
I'll put that out in the 
comments so you guys can get 

299
00:21:44,560 --> 00:21:45,840
through it too. 
There you go. 

300
00:21:48,080 --> 00:21:50,160
Cool. 
All right. 

301
00:21:50,160 --> 00:21:53,800
So sorry, I didn't mean to 
completely cut it off where we 

302
00:21:53,800 --> 00:21:55,920
were. 
So we're just kind of we added 

303
00:21:55,920 --> 00:21:57,800
this, commented out the 
notification. 

304
00:21:58,360 --> 00:22:02,880
What's the next step? 
Next step is we need some data 

305
00:22:02,880 --> 00:22:08,960
so we can show something. 
I send you link here api.net JS 

306
00:22:08,960 --> 00:22:11,160
query dot refined their graph 
QL. 

307
00:22:11,720 --> 00:22:15,640
So let's go there. 
There's a nice graph QL 

308
00:22:15,640 --> 00:22:18,360
playground. 
There we go. 

309
00:22:19,800 --> 00:22:24,040
So if you go click docs on the 
right side, very right side. 

310
00:22:24,480 --> 00:22:30,000
So we it's typical graphical 
queries mutations, we are going 

311
00:22:30,000 --> 00:22:31,880
to connect it through data 
provider. 

312
00:22:31,880 --> 00:22:36,920
So data provider concept in 
refine is it's a connection 

313
00:22:36,920 --> 00:22:39,480
between your data source and 
refine. 

314
00:22:40,680 --> 00:22:46,600
So instead of writing in line, I
don't know parameters and 

315
00:22:46,600 --> 00:22:50,880
endpoints and stuff like that, 
there is a centralized concept 

316
00:22:51,040 --> 00:22:54,080
object called data provider. 
You can have multiple data 

317
00:22:54,080 --> 00:22:57,080
providers as well. 
For example, for blog posts you 

318
00:22:57,080 --> 00:23:00,840
want to use graphical, for 
categories you want to use REST 

319
00:23:00,840 --> 00:23:05,320
or whatever. 
So we will use this one for now.

320
00:23:05,960 --> 00:23:09,560
For that, we already have 
documentation here. 

321
00:23:09,560 --> 00:23:11,400
Let's go there and follow the 
steps. 

322
00:23:13,200 --> 00:23:15,320
We are going to install a couple
of. 

323
00:23:15,720 --> 00:23:21,480
This one. 
I I send link nest JS query. 

324
00:23:21,800 --> 00:23:24,320
There we go. 
Yes, this one, yeah. 

325
00:23:24,600 --> 00:23:29,000
So first let's start with 
installing our data provider, 

326
00:23:29,520 --> 00:23:32,920
refining Nest JS query and Graph
QL Tech package. 

327
00:23:33,440 --> 00:23:40,160
Graph QL tech package is used to
generate Graph QL queries in a 

328
00:23:40,440 --> 00:23:51,600
type safe manner. 
Yeah, that's great. 

329
00:23:52,040 --> 00:23:55,360
And anyone watching, if you 
can't see any of the code, if 

330
00:23:55,360 --> 00:23:58,320
it's not big enough, just let me
know and I can increase some 

331
00:23:58,320 --> 00:24:00,480
things even though it's starting
to hurt my eyes already. 

332
00:24:01,720 --> 00:24:09,160
OK, continue with our imports. 
Let's import data provider from 

333
00:24:09,160 --> 00:24:11,280
Netschase query. 
Actually it's also in the 

334
00:24:11,880 --> 00:24:14,640
documentation. 
If you Scroll down a bit, you're

335
00:24:14,640 --> 00:24:22,600
going to see yes, a bit up, up. 
This like second line imports 

336
00:24:22,840 --> 00:24:24,920
data provider graphical client 
let. 

337
00:24:27,360 --> 00:24:28,960
Me, get rid of this for a 
second. 

338
00:24:29,440 --> 00:24:35,080
We'll do it there and then. 
This is within Refine, we put 

339
00:24:35,080 --> 00:24:37,880
this. 
Data provider and there is a 

340
00:24:37,880 --> 00:24:41,080
line in between them where we 
initialize client. 

341
00:24:41,520 --> 00:24:46,560
So this client is you. 
You are responsible for passing 

342
00:24:46,560 --> 00:24:50,400
client to us. 
It's it's a decision to make it 

343
00:24:50,400 --> 00:24:54,480
flexible because if you use any 
internal client to connect, you 

344
00:24:54,480 --> 00:24:57,600
cannot add your custom headers 
or authentication or anything. 

345
00:24:59,400 --> 00:25:02,160
Here, I just wanted to hopefully
put that in there. 

346
00:25:03,160 --> 00:25:10,240
There we go. 
OK, so save that and put in the 

347
00:25:10,400 --> 00:25:13,080
connection. 
All right. 

348
00:25:14,000 --> 00:25:17,480
Let's let's check if ours app is
still alive. 

349
00:25:18,080 --> 00:25:21,600
All is good. 
Yeah, still pretty much nothing.

350
00:25:21,880 --> 00:25:24,200
So let's continue with adding 
our route. 

351
00:25:24,280 --> 00:25:30,160
Finally, let's create in maybe 
pages folder blog posts and. 

352
00:25:31,920 --> 00:25:35,840
Sorry, so like a new. 
Yeah, you can create a folder 

353
00:25:35,920 --> 00:25:38,920
like Pages. 
It's just to follow like you can

354
00:25:38,920 --> 00:25:47,320
put it anywhere. 
But yeah, blog dash posts, TSX, 

355
00:25:48,400 --> 00:25:51,920
it's a folder. 
We are going to add this TS6 

356
00:25:52,480 --> 00:25:56,800
inside there you can just add 
blog post List component also 

357
00:25:57,080 --> 00:25:59,920
doesn't matter. 
Yeah, let's add list TS6 file 

358
00:26:03,960 --> 00:26:07,880
and then we can initialize a 
typical React component just to 

359
00:26:07,880 --> 00:26:10,680
say hello. 
This is list just to make sure 

360
00:26:11,720 --> 00:26:15,960
we export construction. 
We used to have these. 

361
00:26:16,360 --> 00:26:20,440
It's been a minute, Sir. 
Maybe it's just OK, we'll just 

362
00:26:20,440 --> 00:26:23,320
do this. 
Actually, I could probably copy 

363
00:26:23,320 --> 00:26:27,640
an example. 
Maybe this one we have some 

364
00:26:27,640 --> 00:26:32,080
queries but not I can give you 
that maybe. 

365
00:26:32,320 --> 00:26:36,320
We can write it out too. 
So just export list. 

366
00:26:37,800 --> 00:26:56,000
Do you something like that? 
Equals something like this. 

367
00:26:58,520 --> 00:27:01,240
Yeah, just just return a deal, 
say hello. 

368
00:27:01,960 --> 00:27:10,960
At the moment we are going to 
put something in there, yeah. 

369
00:27:12,680 --> 00:27:17,280
So since we are using rear 
router, let's add a new route 

370
00:27:18,240 --> 00:27:26,400
after line 37. 
Yeah, let's remove in. 

371
00:27:26,840 --> 00:27:31,680
OK, we can keep it. 
Also we need to pass path tweet.

372
00:27:31,880 --> 00:27:38,080
I can give you like some it. 
Is yeah, OK here I'll just I'll 

373
00:27:38,080 --> 00:27:46,480
put it below here. 
Maybe a list from Is there 

374
00:27:46,480 --> 00:27:55,520
shortcuts or no? 
I think you can do what is FTS 

375
00:27:55,520 --> 00:27:58,320
6. 
It should import it 

376
00:27:58,320 --> 00:28:00,160
automatically. 
Yeah, yeah, yeah. 

377
00:28:00,520 --> 00:28:07,760
Blog posts list yes, but it's 
not default export I see. 

378
00:28:09,120 --> 00:28:10,960
Yep, you need to restructure it.
Yeah. 

379
00:28:12,480 --> 00:28:16,040
And if you do comment space, it 
should auto complete whatever 

380
00:28:16,040 --> 00:28:20,320
you export there. 
There we go, ish. 

381
00:28:20,720 --> 00:28:25,040
Maybe I need to change this to? 
Yeah, some capital. 

382
00:28:25,160 --> 00:28:34,480
Behave a little bit. 
And it shouldn't be indexed. 

383
00:28:34,480 --> 00:28:43,800
Let's give it a path like blog 
posts for example, with a slash 

384
00:28:43,800 --> 00:28:46,000
in the beginning, not in the 
end. 

385
00:28:46,200 --> 00:28:50,280
Blog test, dash posts. 
All right, I think. 

386
00:28:50,560 --> 00:28:54,960
I'm not exporting the correct 
type, but I think maybe we'll be

387
00:28:54,960 --> 00:28:58,720
OK. 
What does it say? 

388
00:29:03,320 --> 00:29:08,040
Here I'm I'm going to actually 
copy your example so I do this 

389
00:29:08,040 --> 00:29:14,600
correctly. 
Yeah, so do change this round. 

390
00:29:20,560 --> 00:29:23,760
Not for now, just so we're all 
following along. 

391
00:29:27,520 --> 00:29:30,200
Sorry about that. 
I didn't see that you had pasted

392
00:29:30,200 --> 00:29:33,520
this. 
OK, now we're we're probably in 

393
00:29:33,520 --> 00:29:35,880
a better spot. 
Yeah, yeah. 

394
00:29:36,000 --> 00:29:39,440
Great. 
So if you navigate to Dash blog 

395
00:29:39,440 --> 00:29:43,000
posts, so we we have a page, 
great. 

396
00:29:43,600 --> 00:29:45,600
It's a step in the right 
direction. 

397
00:29:48,160 --> 00:29:54,160
We're getting there, yeah. 
We're getting there, so let's 

398
00:29:54,160 --> 00:30:00,960
continue with creating like in a
typical Ant design application, 

399
00:30:01,160 --> 00:30:03,720
obviously you need to create 
some table. 

400
00:30:04,040 --> 00:30:08,320
For example, let's import table 
from Ant D is that. 

401
00:30:08,440 --> 00:30:13,440
Is that within the blog lists? 
Yeah, yeah, at the top of this 

402
00:30:13,440 --> 00:30:18,320
file, something like this. 
Oh, I like, I like cheating. 

403
00:30:18,440 --> 00:30:23,440
This is good. 
My editor VS Code actually auto 

404
00:30:23,440 --> 00:30:25,680
completes all the time. 
I just write table and. 

405
00:30:26,160 --> 00:30:28,960
Oh. 
That's not comment dot and it 

406
00:30:28,960 --> 00:30:31,400
just. 
Imports, that's one nice thing. 

407
00:30:31,400 --> 00:30:34,520
Like when you're kind of away 
from the I love Tailwind, I'll 

408
00:30:34,520 --> 00:30:37,480
say that first of all. 
But like when you have a nice UI

409
00:30:39,280 --> 00:30:42,240
collection or whatever you want 
to call it and the tooling that 

410
00:30:42,240 --> 00:30:44,240
surrounds it as well, that's 
really cool. 

411
00:30:46,600 --> 00:30:49,160
OK, so we're going to return 
table. 

412
00:30:49,840 --> 00:30:53,600
Yeah. 
And let's have yeah for that. 

413
00:30:53,720 --> 00:30:57,160
It should be sufficient. 
Just let's check. 

414
00:30:57,720 --> 00:31:02,120
So we have table with no data. 
So we need to populate some data

415
00:31:02,320 --> 00:31:07,240
into this table always. 
So, so far we already have data 

416
00:31:07,240 --> 00:31:10,240
provider, so we can connect to 
our data. 

417
00:31:10,280 --> 00:31:16,480
But what are we going to do? 
So refine has hooks based 

418
00:31:16,480 --> 00:31:19,320
architecture. 
So for example, we are going to 

419
00:31:19,720 --> 00:31:24,240
get a list of blog posts. 
So we have who called use list. 

420
00:31:24,520 --> 00:31:32,520
So we are going to use that 
import use list with capital L 

421
00:31:35,800 --> 00:31:38,240
Yeah, yeah, I want to show you 
that. 

422
00:31:38,240 --> 00:31:42,600
So one thing I want to like stop
for a moment and explain that 

423
00:31:42,840 --> 00:31:48,080
refind their core has use list 
and you can use it here actually

424
00:31:48,320 --> 00:31:52,160
no worries. 
But two, so we have table 

425
00:31:52,160 --> 00:31:58,560
component here from Ant design. 
So actually make it work easier 

426
00:31:58,560 --> 00:32:02,240
with Ant design. 
We have use table hook imported 

427
00:32:02,240 --> 00:32:05,560
from refined dev and the package
let's use that. 

428
00:32:05,920 --> 00:32:11,240
The difference is that it takes 
care of making getting data from

429
00:32:11,240 --> 00:32:15,080
refined core and making it 
compatible with Ant design 

430
00:32:15,080 --> 00:32:16,240
table. 
So. 

431
00:32:17,560 --> 00:32:25,320
Yeah, the bottom line is that 
use table, let's say from and 

432
00:32:25,360 --> 00:32:29,640
the I I sent you import 
something like that. 

433
00:32:30,840 --> 00:32:34,720
Oops. 
Oh, sorry. 

434
00:32:34,720 --> 00:32:42,480
Gotcha. 
Yeah, we can remove use list 

435
00:32:42,480 --> 00:32:44,560
now. 
It's it's not needed. 

436
00:32:44,920 --> 00:32:48,960
And so that so use table is like
you said wrapping that kind of 

437
00:32:48,960 --> 00:32:52,880
use list in ants. 
Yeah, like connects to our data,

438
00:32:54,560 --> 00:32:58,960
fetches data that makes it 
available to Ant Design tables 

439
00:32:59,720 --> 00:33:04,080
and makes it comfortable in a 
way that Ant Design can render 

440
00:33:04,080 --> 00:33:07,680
this data correctly. 
So let's use that hook. 

441
00:33:08,960 --> 00:33:14,840
You can start with really 
simple, let's say construction 

442
00:33:17,080 --> 00:33:21,440
construction and let's just 
structure it with. 

443
00:33:24,320 --> 00:33:27,360
Yeah, it's table props. 
We are going to fetch table 

444
00:33:27,360 --> 00:33:33,720
props from there. 
Yes, use table. 

445
00:33:34,600 --> 00:33:41,880
So first thing we need to do is 
refine his like thing called 

446
00:33:41,880 --> 00:33:46,320
resource. 
Resource is basically entity 

447
00:33:46,320 --> 00:33:51,200
that connects different pieces 
of providers and application 

448
00:33:51,200 --> 00:33:54,880
together. 
So in here we are going to use 

449
00:33:54,880 --> 00:34:01,040
resource to connect to our 
correct for example API 

450
00:34:01,040 --> 00:34:05,560
endpoint. 
Let's pass to use table hook. 

451
00:34:06,040 --> 00:34:12,040
Let's pass with. 
Like applicant. 

452
00:34:12,480 --> 00:34:16,120
Resource yeah, resource blog 
dash posts. 

453
00:34:16,199 --> 00:34:22,840
For now, let's do that. 
So you can test string here. 

454
00:34:22,880 --> 00:34:25,679
Resource the string blog dash 
posts. 

455
00:34:28,280 --> 00:34:34,400
Just blog dash posts like. 
That I get close. 

456
00:34:34,560 --> 00:34:39,120
Like this posts? 
Gotcha, Sir. 

457
00:34:39,920 --> 00:34:44,159
Yeah, it's a string and perfect.
Yeah. 

458
00:34:44,600 --> 00:34:47,920
So let's continue with our 
graphical query. 

459
00:34:48,320 --> 00:34:51,880
If you navigate back to 
documentation, we already have 

460
00:34:51,880 --> 00:34:55,760
the query there, so we don't 
need to write ourselves at the 

461
00:34:56,239 --> 00:34:57,960
top. 
Yeah, blog post. 

462
00:34:58,040 --> 00:35:05,040
We can copy the first query and 
it's import and like. 

463
00:35:05,040 --> 00:35:07,400
Obviously we can put it 
anywhere, but as a best 

464
00:35:07,400 --> 00:35:11,560
practice, we choose to put it in
a separate file called queries 

465
00:35:11,560 --> 00:35:14,280
TS. 
So let's virtualize a new file 

466
00:35:14,280 --> 00:35:25,160
called queries TS. 
Here we have ID, title, let's 

467
00:35:25,160 --> 00:35:31,760
add status, yeah, after and 
let's fetch category ID as well.

468
00:35:31,760 --> 00:35:39,320
In this example in the list and 
also content, we don't need for 

469
00:35:39,320 --> 00:35:42,600
list because we are not going to
show content but we can add 

470
00:35:42,800 --> 00:35:51,400
category ID for example. 
Yes we have created that ID, 

471
00:35:51,400 --> 00:35:54,040
title, status, category. 
OK, great. 

472
00:35:54,480 --> 00:35:59,040
So this is telling. 
I want to use this graphical 

473
00:35:59,040 --> 00:36:04,360
query to connect. 
So let's test it to our hook. 

474
00:36:04,800 --> 00:36:09,600
So you can use this syntax as a 
second parameter of the 

475
00:36:09,600 --> 00:36:12,440
resource. 
Let's put a comma and there's a 

476
00:36:12,440 --> 00:36:18,520
meta parameter and meta 
parameter has inside it. 

477
00:36:18,920 --> 00:36:24,240
There is another prop called GQL
query but it's inside meta 

478
00:36:25,360 --> 00:36:28,200
starting. 
Yes, great. 

479
00:36:28,880 --> 00:36:34,200
So it's also completed already. 
So I think you can say posts 

480
00:36:34,200 --> 00:36:36,720
list. 
Yeah it's already common. 

481
00:36:36,800 --> 00:36:41,240
Dot should auto import that. 
Sweet. 

482
00:36:42,360 --> 00:36:46,760
Yeah, yeah, that's all. 
And then table props, are we 

483
00:36:46,760 --> 00:36:48,440
destructuring those on the 
table? 

484
00:36:48,520 --> 00:36:49,560
Exactly. 
Exactly. 

485
00:36:49,560 --> 00:36:52,320
Yeah, cool. 
Makes sense? 

486
00:36:52,640 --> 00:36:54,920
With three dots in the 
beginning, yeah. 

487
00:36:55,560 --> 00:37:00,160
Sorry. 
So if you go back to our 

488
00:37:00,160 --> 00:37:06,200
application we have some data. 
As you can see we already got 

489
00:37:06,440 --> 00:37:10,120
pagination and everything. 
And if you want to check network

490
00:37:10,120 --> 00:37:12,840
tab it's already makes request 
and all. 

491
00:37:12,840 --> 00:37:17,600
But obviously we don't show 
anything yet like the table. 

492
00:37:18,040 --> 00:37:22,480
So from here we can start 
adding. 

493
00:37:22,800 --> 00:37:27,760
Let me give you like example 
like this one. 

494
00:37:28,200 --> 00:37:32,880
We need to add table dot column 
data, index ID and so on. 

495
00:37:33,040 --> 00:37:38,920
So we show something. 
So we we need to add children 

496
00:37:38,920 --> 00:37:43,600
to. 
Yeah, yeah. 

497
00:37:44,880 --> 00:37:47,840
Is this? 
Oh, it's directly to. 

498
00:37:49,120 --> 00:37:51,440
Yeah, it's self closing. 
Yeah, self closing. 

499
00:37:51,800 --> 00:37:54,840
OK. 
But you of course you need to 

500
00:37:55,760 --> 00:38:01,680
close table as well. 
I think why I think this is off 

501
00:38:01,720 --> 00:38:03,000
for some reason. 
There we go. 

502
00:38:04,640 --> 00:38:07,880
Oh I I forgot to copy this 
another. 

503
00:38:07,880 --> 00:38:09,640
Yeah, no worries. 
It's it's all good. 

504
00:38:11,600 --> 00:38:15,160
So we have ID. 
What else do we want in here? 

505
00:38:15,880 --> 00:38:18,960
Let's do the same with title for
example. 

506
00:38:18,960 --> 00:38:22,040
Let me send you that as well to 
save some time. 

507
00:38:22,440 --> 00:38:24,720
This time I copy pasted it of 
course. 

508
00:38:26,040 --> 00:38:33,960
It's all good like that. 
So I notice this data index that

509
00:38:33,960 --> 00:38:36,800
is the the data that's coming 
in. 

510
00:38:36,800 --> 00:38:39,280
That's the field from the graph 
QL. 

511
00:38:39,720 --> 00:38:44,040
From response and title is what 
users see on the and. 

512
00:38:44,040 --> 00:38:48,800
So like I can just call this 
Alex even and exactly. 

513
00:38:50,080 --> 00:38:54,200
Cool. 
So let's do the same for status 

514
00:38:55,080 --> 00:39:01,200
as well. 
So it's here, it's kind of like 

515
00:39:01,200 --> 00:39:08,280
boring parts, something like. 
So we, if you go back, we will 

516
00:39:08,280 --> 00:39:10,680
see status as well, of course 
and all. 

517
00:39:10,680 --> 00:39:13,240
But let's add something slightly
different. 

518
00:39:13,240 --> 00:39:15,840
So this time we're going to add 
category. 

519
00:39:16,000 --> 00:39:21,560
But this time category is not 
main field in our response. 

520
00:39:21,560 --> 00:39:26,320
So it's like another entity. 
For this we have slightly 

521
00:39:26,320 --> 00:39:29,600
different sign text, but again, 
it's not about refine, it's 

522
00:39:29,600 --> 00:39:33,680
about Ant design. 
So we have this one. 

523
00:39:34,960 --> 00:39:37,400
Oh, gotcha. 
OK, so it's an array coming in. 

524
00:39:37,720 --> 00:39:43,160
Yeah, like for this entity go to
category and inside it show me 

525
00:39:43,160 --> 00:39:45,800
title because it's human 
readable. 

526
00:39:46,040 --> 00:39:49,120
You don't want to show ID, it's 
not understandable. 

527
00:39:49,560 --> 00:39:54,040
So if if you wanted ID as well, 
would you put another one of 

528
00:39:54,040 --> 00:39:56,960
these in here and like put ID 
next to it? 

529
00:39:57,720 --> 00:40:00,120
Yeah, exactly. 
Let's try that for example, 

530
00:40:02,000 --> 00:40:06,800
yeah, yeah. 
So we have this one. 

531
00:40:06,800 --> 00:40:12,440
Let's put created that finally 
for that, without going too much

532
00:40:12,440 --> 00:40:15,040
into details, if you edit, yeah,
let's check that. 

533
00:40:15,440 --> 00:40:19,000
So it's. 
It's not really human readable 

534
00:40:19,080 --> 00:40:26,360
again like it's date what with 
ESO format which AP is can 

535
00:40:26,360 --> 00:40:31,720
understand, but we can make it 
more readable for users for 

536
00:40:31,720 --> 00:40:34,240
that. 
Actually you can import date 

537
00:40:34,240 --> 00:40:38,760
field component from, refined 
the and the package again. 

538
00:40:41,720 --> 00:40:45,640
Again, of course you can do the 
same thing yourself, but we just

539
00:40:46,120 --> 00:40:49,000
add this to make it easier for 
people. 

540
00:40:49,360 --> 00:41:01,720
And finally, you can add render 
prop to render custom column. 

541
00:41:05,440 --> 00:41:09,160
Yeah, it's prop of. 
Yeah, that should work. 

542
00:41:12,240 --> 00:41:14,760
I think I missed something 
again. 

543
00:41:15,200 --> 00:41:16,600
It's all good. 
I think it's just the. 

544
00:41:16,760 --> 00:41:24,840
Object created, let me send you 
it again AM. 

545
00:41:26,320 --> 00:41:32,200
I missing an extra 1. 
This one OK, this should work 

546
00:41:32,360 --> 00:41:39,800
hopefully. 
And of course we need to enclose

547
00:41:39,800 --> 00:41:43,800
the component column also, so 
just another. 

548
00:41:47,680 --> 00:41:51,440
So yeah, it's it's going to look
slightly better. 

549
00:41:51,760 --> 00:41:55,560
So you're you're essentially 
passing a a function and passing

550
00:41:55,560 --> 00:41:59,480
the value in for created at and 
you're passing that value over 

551
00:41:59,480 --> 00:42:02,120
to the date field and it's going
to format it correctly. 

552
00:42:02,520 --> 00:42:03,800
Yeah. 
Cool. 

553
00:42:04,040 --> 00:42:08,120
So I like it. 
I think we can move it a bit 

554
00:42:08,120 --> 00:42:16,160
further with format LLL three 
capital L I think it's even more

555
00:42:16,160 --> 00:42:19,600
human readable to date field 
component. 

556
00:42:19,800 --> 00:42:21,480
Sorry. 
Yeah. 

557
00:42:23,000 --> 00:42:24,960
Oh yes, that's very. 
Nice. 

558
00:42:24,960 --> 00:42:28,040
It's better. 
Do you does lol do local time 

559
00:42:28,040 --> 00:42:31,840
zone by chance? 
Sorry, local time zone. 

560
00:42:32,120 --> 00:42:34,120
Yeah. 
So I would see it in Eastern and

561
00:42:34,120 --> 00:42:35,960
you would see it. 
I don't even know what time are 

562
00:42:35,960 --> 00:42:44,920
you. 6 hours ahead I think. 
Yeah, I'm GMGM t + 3, 99 hours 

563
00:42:45,000 --> 00:42:49,440
in between. 
So of course our API returns UTC

564
00:42:50,800 --> 00:42:56,720
time zone, so we can you can use
this time zone to format 

565
00:42:56,720 --> 00:43:02,560
yourself like with anything. 
So yeah, I think this should be 

566
00:43:02,560 --> 00:43:07,080
returning UTC, but depends on 
and design. 

567
00:43:07,080 --> 00:43:10,960
With maybe some day JS some 
library you can convert it to 

568
00:43:10,960 --> 00:43:13,080
users time zone. 
OK, cool. 

569
00:43:14,200 --> 00:43:22,000
Great, now we have a list page 
that we can paginate and see 

570
00:43:22,000 --> 00:43:25,520
some records and categories and 
stuff. 

571
00:43:25,800 --> 00:43:31,000
So let's add some sorting here. 
Let's say I want to sort by ID. 

572
00:43:31,320 --> 00:43:34,920
So how would you go about that 
if you weren't using refine? 

573
00:43:35,240 --> 00:43:39,840
So you you are making request 
your API, you need to keep a 

574
00:43:39,840 --> 00:43:44,920
state because if sorting 
parameter changes, you need to 

575
00:43:44,920 --> 00:43:49,880
update the state and you need to
update your API request, re 

576
00:43:49,880 --> 00:43:53,360
fetch it, make sure it renders 
and like that's a lot of work 

577
00:43:53,640 --> 00:43:55,760
with refine. 
It also takes some time. 

578
00:43:55,760 --> 00:44:03,200
So let's go to blog posts list 
and first one to do ID let's add

579
00:44:03,200 --> 00:44:07,880
sorter prop which is boolean. 
You can just pass sorter after 

580
00:44:07,880 --> 00:44:10,920
ID. 
Sorry, like right. 

581
00:44:10,920 --> 00:44:18,120
Here Yeah yeah, sorter yeah, 
let's yeah, just like that. 

582
00:44:18,280 --> 00:44:22,240
So by default it's true. 
If you do send nothing, it sends

583
00:44:22,240 --> 00:44:25,400
true. 
So let's go back to app and 

584
00:44:25,400 --> 00:44:32,360
let's click it ID column so you 
can do the sorting already with 

585
00:44:32,360 --> 00:44:37,280
just one probe and it takes care
of refetching data and re 

586
00:44:37,280 --> 00:44:41,360
rendering and updating records, 
making requests and all that 

587
00:44:42,280 --> 00:44:45,720
again. 
Let's add filter by statuses for

588
00:44:45,720 --> 00:44:48,520
example. 
For that we are not going to use

589
00:44:48,520 --> 00:44:51,600
something special. 
It's also and designs default 

590
00:44:51,600 --> 00:44:53,440
like. 
It's not about refine at this 

591
00:44:53,440 --> 00:44:57,960
point because refine already 
provides compatible props to 

592
00:44:57,960 --> 00:45:00,760
table. 
You just say let me check 

593
00:45:00,960 --> 00:45:06,640
filters prop to status. 
Let me give you that. 

594
00:45:08,280 --> 00:45:15,520
You need to pass this array so 
you can find it in Ant design 

595
00:45:15,520 --> 00:45:19,080
docs. 
So let's explain a bit before we

596
00:45:19,080 --> 00:45:21,160
move on. 
This is again not about refines.

597
00:45:21,160 --> 00:45:25,240
Ant design text is what users 
see value it what goes to your 

598
00:45:25,240 --> 00:45:30,120
API, right. 
So if you go back to our app 

599
00:45:30,120 --> 00:45:35,560
again rights out of status. 
Now we have draft published 

600
00:45:35,560 --> 00:45:40,440
rejected, you can click and now 
they are listed. 

601
00:45:40,480 --> 00:45:44,440
Of course it sends. 
If you choose multiple it sends 

602
00:45:44,440 --> 00:45:48,480
or query, for example, let's say
just draft and publish. 

603
00:45:49,160 --> 00:45:54,320
Yeah, I don't know if you don't 
want users to send multiple 

604
00:45:54,320 --> 00:45:57,640
filters, you can say filter 
multiple falls, it's going to be

605
00:45:57,640 --> 00:46:02,480
converted into radio instead of 
check boxes. 

606
00:46:02,760 --> 00:46:06,960
Again, this is without design, 
like you just do your stuff with

607
00:46:06,960 --> 00:46:10,560
Ant design, it's going to handle
the rest. 

608
00:46:13,120 --> 00:46:18,720
Yeah, yeah. 
So these examples were 

609
00:46:18,800 --> 00:46:21,280
relatively simple. 
I'd love to. 

610
00:46:21,800 --> 00:46:24,640
Even show off like the query 
when that goes across. 

611
00:46:24,640 --> 00:46:31,760
So if I do published and hit OK 
in our network call like this is

612
00:46:31,760 --> 00:46:35,040
this is the craziness of this 
network call, right So? 

613
00:46:36,000 --> 00:46:37,840
You can check payload for 
example. 

614
00:46:37,840 --> 00:46:39,160
Yeah, that's what I was looking 
for. 

615
00:46:39,160 --> 00:46:42,280
Thank you. 
So this is this is what actually

616
00:46:42,280 --> 00:46:45,520
comes out for that network call 
when you're coming across. 

617
00:46:46,040 --> 00:46:50,720
And so if we hit the pagination,
we get a new one, same deal, but

618
00:46:50,720 --> 00:46:52,360
it's paginating it with an 
offset. 

619
00:46:52,360 --> 00:46:57,160
That's really cool. 
Yeah, like this was the whole 

620
00:46:57,160 --> 00:47:02,200
point, The reason we started 
refined because this stuff are 

621
00:47:02,400 --> 00:47:05,320
repetitive. 
What's important, you don't want

622
00:47:05,320 --> 00:47:08,960
to have an application without 
pagination, but you just will do

623
00:47:08,960 --> 00:47:12,120
same thing. 
Then you say I can share it 

624
00:47:12,120 --> 00:47:15,760
here, but if you want to do 
slight change in a private app, 

625
00:47:16,040 --> 00:47:21,160
so you need to like make 10 
smart engineers discussed 

626
00:47:21,160 --> 00:47:25,040
indefinitely, like for 10 hours 
straight to come up with the 

627
00:47:25,280 --> 00:47:27,720
best solution. 
And like you don't want to do 

628
00:47:27,720 --> 00:47:29,520
that. 
So everyone has different ideas 

629
00:47:29,520 --> 00:47:33,720
and all like we kind of provide 
this unified interfaces 

630
00:47:34,160 --> 00:47:38,240
contracts and as long as you 
satisfy refined core 

631
00:47:38,240 --> 00:47:40,560
requirements, then it's all 
good. 

632
00:47:40,560 --> 00:47:44,320
Because if you want to do anti 
integration, you know what anti 

633
00:47:44,320 --> 00:47:46,160
wants, you know what refined 
wants. 

634
00:47:46,360 --> 00:47:50,840
So we just get, I don't know, 
data from core make it 

635
00:47:50,920 --> 00:47:55,720
understand and design. 
So this integration is just as I

636
00:47:55,720 --> 00:48:01,600
said like bindings basically 
some like in connections between

637
00:48:01,600 --> 00:48:06,720
this different libraries. 
And we'll probably get to this, 

638
00:48:06,720 --> 00:48:10,600
but is there a a drag and drop 
equivalent of this coding side 

639
00:48:10,600 --> 00:48:14,640
of this? 
Yeah, we, we have CRM example, 

640
00:48:16,560 --> 00:48:20,960
you can check that. 
But again this drag and drop we 

641
00:48:20,960 --> 00:48:25,160
don't have is empty, but we were
using a library, I don't 

642
00:48:25,160 --> 00:48:32,520
remember React what's what was 
that Jira open sourced Jira's 

643
00:48:32,520 --> 00:48:36,120
package. 
So we have CRM example. 

644
00:48:36,400 --> 00:48:41,240
Let me check that. 
Where is it? 

645
00:48:42,920 --> 00:48:47,560
I think in the live demo there's
one example that excuse me, 

646
00:48:47,560 --> 00:48:49,760
example dot CRM dot refine dot 
dev. 

647
00:48:50,680 --> 00:48:54,040
Yeah, yeah. 
Example dot CRM refine dot dev. 

648
00:48:55,240 --> 00:48:59,720
So if we're so yeah, of course 
like we we have simple wall 

649
00:48:59,760 --> 00:49:04,080
through here. 
So if you go to scrambled, you 

650
00:49:04,080 --> 00:49:07,520
can already see on the left 
side. 

651
00:49:09,920 --> 00:49:13,800
So it's the same thing. 
Of course, it's public API, so 

652
00:49:13,800 --> 00:49:17,960
people add random stuff. 
So you can do drag and drop. 

653
00:49:17,960 --> 00:49:23,440
And actually you can find the 
full source code here. 

654
00:49:23,440 --> 00:49:27,480
Let me send the link so you can 
share with everyone. 

655
00:49:28,840 --> 00:49:32,480
It's this one. 
So you can see the source code 

656
00:49:33,520 --> 00:49:34,760
here. 
It's all open. 

657
00:49:34,760 --> 00:49:38,880
You can see, review and just 
play with it. 

658
00:49:40,400 --> 00:49:42,320
Nice. 
I'll share that out with 

659
00:49:42,320 --> 00:49:45,720
everybody as well. 
We do have a a comment in the 

660
00:49:45,720 --> 00:49:50,880
meantime person wanting to 
contribute to the project and 

661
00:49:50,880 --> 00:49:54,840
any steps to easily like come in
and start supporting that side 

662
00:49:54,840 --> 00:49:58,960
of it. 
So it's not any different than 

663
00:49:58,960 --> 00:50:04,160
any open source project. 
You go to issues, see if there's

664
00:50:04,280 --> 00:50:05,920
something you would like to work
on. 

665
00:50:06,640 --> 00:50:10,720
And in our documentation we have
contributing guide. 

666
00:50:10,960 --> 00:50:18,840
Of course, we have some commit 
convention and some checks that 

667
00:50:18,840 --> 00:50:22,360
we already explained. 
Let me send the link. 

668
00:50:23,360 --> 00:50:28,160
Those I think the contributing 
is right here. 

669
00:50:32,240 --> 00:50:33,840
Yes, exactly. 
Yeah. 

670
00:50:34,640 --> 00:50:38,400
So we already explained 
everything that make sure you 

671
00:50:38,400 --> 00:50:44,400
follow commit Commission because
like it's like some people send 

672
00:50:44,400 --> 00:50:47,840
some comments and they spare 
their time. 

673
00:50:47,840 --> 00:50:50,000
It's all nice. 
But CI fails. 

674
00:50:50,000 --> 00:50:52,480
So you don't want to like not 
them. 

675
00:50:52,480 --> 00:50:56,120
Like you need to update your 
commit structure, something like

676
00:50:56,120 --> 00:50:58,560
that. 
We fix for them, but it makes 

677
00:50:58,560 --> 00:51:00,840
our lives easier if you follow 
the Commission but. 

678
00:51:01,480 --> 00:51:05,520
For sure. 
Do you do you have any examples 

679
00:51:05,520 --> 00:51:08,840
where you're building so like 
low code, no code. 

680
00:51:08,840 --> 00:51:13,720
Do you have any examples where 
we're actually building out like

681
00:51:13,720 --> 00:51:16,760
a next JS application and where 
those buttons go? 

682
00:51:16,760 --> 00:51:19,840
Or is it mainly the back end 
that we would put those? 

683
00:51:19,960 --> 00:51:22,160
Yeah, actually I want to show 
you something. 

684
00:51:22,200 --> 00:51:24,000
So let's go back to our risk 
page. 

685
00:51:25,480 --> 00:51:28,720
Yep. 
Sorry, my fingers got off the 

686
00:51:28,720 --> 00:51:29,680
keyboard. 
There we go. 

687
00:51:30,640 --> 00:51:35,120
So if they're going to use next 
JS, literally nothing changes 

688
00:51:35,120 --> 00:51:38,840
about this file. 
It's exact same API. 

689
00:51:39,280 --> 00:51:42,600
Maybe you need to add use client
directive at the very top of the

690
00:51:42,600 --> 00:51:46,600
page if it's client only or 
something. 

691
00:51:46,920 --> 00:51:49,280
But that's the thing which we 
find. 

692
00:51:50,200 --> 00:51:54,440
So let's say imaginary case that
you're going to migrate to 

693
00:51:54,440 --> 00:51:59,360
Nexjs, you're going to create 
Nexjs application instead of 

694
00:51:59,360 --> 00:52:05,360
pages, blog posts and importing 
route path in there, you're 

695
00:52:05,360 --> 00:52:09,760
going to create SRC app blog 
posts page. 

696
00:52:09,760 --> 00:52:15,360
TS6 code is exactly the same, 
but in the of course layout TS6 

697
00:52:15,760 --> 00:52:19,800
instead of real router V6 router
provider, you're going to import

698
00:52:20,000 --> 00:52:24,600
next chase router provider. 
So like using refine is no 

699
00:52:24,600 --> 00:52:28,360
different other than some 
configuration on the shell app 

700
00:52:28,360 --> 00:52:30,360
like entry points or something 
like that. 

701
00:52:30,680 --> 00:52:34,520
You can use the same with Remix 
as well actually like it's no 

702
00:52:34,520 --> 00:52:36,840
different. 
Like Refine code is the same as 

703
00:52:36,840 --> 00:52:40,040
we mentioned, we provide like 
centralized contract and 

704
00:52:40,120 --> 00:52:43,160
centralized API for different 
kind of libraries. 

705
00:52:43,160 --> 00:52:47,760
But at the end of the day, at 
this point, other than it's 

706
00:52:47,760 --> 00:52:50,880
really no one see that coming 
that server components stuff 

707
00:52:50,880 --> 00:52:55,520
like it's everything like 
running S categories on 

708
00:52:56,200 --> 00:52:59,320
reactivates. 
But again, like maybe you need 

709
00:52:59,320 --> 00:53:01,920
to use client directive to the 
top of the page. 

710
00:53:02,680 --> 00:53:08,760
We by the way, we try to support
this server only components, 

711
00:53:09,000 --> 00:53:13,600
client only components, hybrid 
components in our latest refined

712
00:53:14,080 --> 00:53:20,160
next Chase router release. 
So, but the thing with that is 

713
00:53:20,160 --> 00:53:23,680
when you provide so many 
integrations and different 

714
00:53:23,680 --> 00:53:27,440
libraries support for example, 
there is inconsistency between 

715
00:53:27,440 --> 00:53:31,520
Ant design and Nextchase. 
So people starting project with 

716
00:53:31,520 --> 00:53:36,760
refine using Nextchase and Ant 
design, then ask us, hey, Ant 

717
00:53:36,760 --> 00:53:40,560
design in the, I don't know, 
like server size rendering 

718
00:53:40,560 --> 00:53:45,480
doesn't work as expected, but 
it's we are basically just using

719
00:53:45,560 --> 00:53:48,440
Ant design. 
It's not about just refine, but 

720
00:53:48,440 --> 00:53:51,520
we do our best to like provide 
support as well. 

721
00:53:51,960 --> 00:53:56,080
But yeah, that's one, one thing 
we had to like explain over and 

722
00:53:56,080 --> 00:53:58,680
over again that if you are using
Ant design, if you are using 

723
00:53:58,680 --> 00:54:02,800
next, yes, you need to check 
respective dogs because like 

724
00:54:02,800 --> 00:54:06,120
refine just puts them together. 
So. 

725
00:54:06,120 --> 00:54:09,040
But it doesn't mean we don't 
provide any support at all. 

726
00:54:09,040 --> 00:54:14,800
Like we try to make it easier at
FAQ questions, answers and 

727
00:54:15,120 --> 00:54:20,520
things like that. 
So what from here? 

728
00:54:20,520 --> 00:54:24,400
The next step for a person would
be to like, hook up their back 

729
00:54:24,400 --> 00:54:26,800
end. 
What, what is the easiest way to

730
00:54:26,840 --> 00:54:29,880
kind of go about that? 
Would you suggest diving into 

731
00:54:29,880 --> 00:54:34,360
like, hey, I have a a super 
base, can I connect out to it 

732
00:54:34,360 --> 00:54:37,960
just like we we did a lot of 
Graph QL on here for API that 

733
00:54:37,960 --> 00:54:40,720
you guys already have stood up. 
What's the process that 

734
00:54:40,720 --> 00:54:44,480
typically you would take to 
connect some data points? 

735
00:54:45,800 --> 00:54:52,920
Yeah, like you, you need to 
check our data providers, see if

736
00:54:52,920 --> 00:54:55,920
you find something that is 
useful for you. 

737
00:54:56,280 --> 00:54:59,320
We have many integrations for 
Superbase for example. 

738
00:54:59,920 --> 00:55:06,120
But if you have some API that is
not Superbase or not consistent,

739
00:55:06,360 --> 00:55:08,600
so you can create your own data 
provider. 

740
00:55:09,160 --> 00:55:14,840
Basically you need to in this 
data provider, we are sending 

741
00:55:15,120 --> 00:55:20,320
parameters from Refine again in 
a consistent way and giving you 

742
00:55:20,320 --> 00:55:24,960
all the information you need. 
Then we are asking you to return

743
00:55:25,440 --> 00:55:29,280
data in this structure. 
Actually if you want to check, I

744
00:55:29,280 --> 00:55:36,720
can send you a CLI command NPM 
run refine at provider data. 

745
00:55:37,280 --> 00:55:41,440
So if you run this command, we 
will give you like some 

746
00:55:41,440 --> 00:55:50,640
boilerplate data provider. 
Aligen are one of our engineers 

747
00:55:50,680 --> 00:55:53,360
with that. 
So it's all that. 

748
00:55:53,360 --> 00:55:57,600
So if you go providers, data 
provider, so we with nice 

749
00:55:57,600 --> 00:56:02,520
typings and all we give you so 
there's a get list, resource 

750
00:56:02,520 --> 00:56:07,200
pagination filters, all provided
you in a type safe manner. 

751
00:56:07,480 --> 00:56:12,800
So we could feel in between like
make sure your API gets correct 

752
00:56:12,800 --> 00:56:17,640
request, make sure you return 
area of data for this one or 

753
00:56:17,760 --> 00:56:22,320
whatever and then the rest 
refine will handle. 

754
00:56:22,520 --> 00:56:26,360
So you don't need to care about 
invalidation, refetching, 

755
00:56:26,360 --> 00:56:29,000
refreshing or stuff like that. 
We will take it from there. 

756
00:56:29,480 --> 00:56:36,000
So you just need to provide this
interface but also let me check 

757
00:56:36,040 --> 00:56:37,320
link. 
What about? 

758
00:56:37,320 --> 00:56:40,480
What about ones that are a 
little less structured data? 

759
00:56:40,480 --> 00:56:45,640
So when we start to talk about 
Mongo DB or Firebase, is that 

760
00:56:45,640 --> 00:56:47,520
something that you guys have 
dove into yet? 

761
00:56:48,160 --> 00:56:50,400
Yeah, nice thing about open 
source. 

762
00:56:50,400 --> 00:56:54,800
We have Refine Firebase open 
source library. 

763
00:56:55,560 --> 00:57:01,280
I'm not sure if they updated to 
use latest version of refine for

764
00:57:01,280 --> 00:57:05,520
Mongo DB. 
In our enterprise packages we 

765
00:57:05,520 --> 00:57:10,360
provide connections to not just 
Mongo DB but any kind of 

766
00:57:10,440 --> 00:57:13,720
database like we provide some 
solution. 

767
00:57:14,040 --> 00:57:17,760
The problem with that you need 
to provide the consistent API if

768
00:57:17,760 --> 00:57:20,440
you want to build something 
quickly, but that's usually a 

769
00:57:20,440 --> 00:57:23,680
problem. 
So we have some tools for our 

770
00:57:23,680 --> 00:57:25,760
enterprise users that you can 
use. 

771
00:57:25,960 --> 00:57:29,480
Basically you give your 
database, Postgres, Mongo DB, 

772
00:57:29,480 --> 00:57:35,120
whatever. 
We build BFF back end on the fly

773
00:57:35,560 --> 00:57:38,600
that are that is 100% compatible
with refined. 

774
00:57:38,840 --> 00:57:43,680
So for that all you need to do 
is just provide your APIURLAPI 

775
00:57:43,680 --> 00:57:46,200
also generated by our tools for 
that. 

776
00:57:46,200 --> 00:57:49,200
But for other cases, let me 
check. 

777
00:57:49,520 --> 00:57:54,680
We have a lot of integrations 
actually data provider if you go

778
00:57:55,160 --> 00:57:59,760
packages, air table app, right 
graph P address, trapeze for 

779
00:57:59,760 --> 00:58:04,880
base crude Hosura son. 
And in the end, we also have 

780
00:58:04,880 --> 00:58:08,160
community data providers list 
there. 

781
00:58:09,040 --> 00:58:13,240
And of course, there are a lot 
of data providers that aren't 

782
00:58:13,240 --> 00:58:18,040
published open source because 
like people are using for their 

783
00:58:18,040 --> 00:58:21,160
own internal API or something 
like that. 

784
00:58:21,160 --> 00:58:27,080
But like if you know the 
structure of API requests 

785
00:58:27,080 --> 00:58:30,040
responses that you can build it 
easily. 

786
00:58:30,640 --> 00:58:36,000
So there are actually there is a
a like one cool package. 

787
00:58:36,000 --> 00:58:43,600
I like it was written with Go. 
So yeah, from your definitions 

788
00:58:43,600 --> 00:58:47,280
models, it boils, it boils 
graphical beacon similar to what

789
00:58:47,280 --> 00:58:52,400
we have here. 
And then this folk, I don't 

790
00:58:52,400 --> 00:58:57,120
remember his name, sorry, but he
also created the data provider 

791
00:58:57,120 --> 00:58:59,200
for that. 
So it's really cool. 

792
00:58:59,760 --> 00:59:03,320
That's awesome. 
So not to put you on the spot 

793
00:59:03,320 --> 00:59:06,800
too much, but I know you guys 
compare yourselves a lot to 

794
00:59:06,800 --> 00:59:12,160
retool and retool kind of has 
more of a a graphical user 

795
00:59:12,160 --> 00:59:15,200
interface for like a no code 
type of solution. 

796
00:59:15,200 --> 00:59:19,280
Is that something that's in the 
works or is it possible to do 

797
00:59:19,280 --> 00:59:25,640
that in the enterprise version? 
So we position our self as an 

798
00:59:25,640 --> 00:59:30,680
alternative to retool but that's
not because we are no code 

799
00:59:30,680 --> 00:59:34,920
solution, we are in low court or
just enough court solution. 

800
00:59:35,200 --> 00:59:39,920
But the reason we compare 
ourselves with retool is that 

801
00:59:40,560 --> 00:59:42,520
what is the main benefit of 
retool? 

802
00:59:42,520 --> 00:59:47,520
We solve the same problem in a 
different ways, but at the same 

803
00:59:47,520 --> 00:59:53,000
time like same speed but with 
more flexibility, with more 

804
00:59:53,000 --> 00:59:57,240
quality and more consistently. 
So like people use retool 

805
00:59:57,240 --> 01:00:02,400
because they need to build a 
dashboard page overnight and 

806
01:00:02,400 --> 01:00:05,880
something quickly. 
So we still provide you that you

807
01:00:05,880 --> 01:00:11,520
can still dashboard overnight. 
Quickly, but two weeks later, 

808
01:00:11,520 --> 01:00:17,280
two months later you can do any 
modification to your API unlike 

809
01:00:17,280 --> 01:00:19,640
like UI tools or something like 
that. 

810
01:00:19,640 --> 01:00:23,120
So we solve same problem in a 
slightly different way. 

811
01:00:23,440 --> 01:00:29,320
But the thing like our solution 
is just not to save the day one 

812
01:00:29,320 --> 01:00:33,880
day, next day, but like entire 
life cycle of application. 

813
01:00:34,360 --> 01:00:37,120
We got you. 
As I mentioned, you see that we 

814
01:00:37,120 --> 01:00:41,600
have CLI commands to make things
faster and things like that, 

815
01:00:41,600 --> 01:00:45,320
that you can write it yourself. 
But we most of the things we 

816
01:00:45,640 --> 01:00:48,760
cover your use case. 
So again, you can boot the 

817
01:00:48,760 --> 01:00:53,560
dashboard and pages or admin 
panel in a day again. 

818
01:00:53,560 --> 01:00:55,800
But you will have version 
control, you will have 

819
01:00:56,040 --> 01:00:59,360
authentication, authorization, 
all all that stuff actually. 

820
01:01:00,040 --> 01:01:00,960
Perfect. 
Yeah. 

821
01:01:02,080 --> 01:01:06,360
Do we have we, I have about 30 
minutes left on our live coding 

822
01:01:06,360 --> 01:01:08,920
session. 
Was there any interest in adding

823
01:01:08,920 --> 01:01:11,360
that authentication page that we
kind of showed off? 

824
01:01:11,360 --> 01:01:13,960
Is that possible? 
Yeah, let's let's continue with 

825
01:01:13,960 --> 01:01:16,480
that. 
Like cool, I wanted to add add a

826
01:01:16,480 --> 01:01:19,840
page, but we don't need to 
follow. 

827
01:01:19,840 --> 01:01:22,400
Let's add authentication, then 
let's continue. 

828
01:01:22,440 --> 01:01:24,560
Whatever you want to go to next,
that'd be great. 

829
01:01:25,120 --> 01:01:29,000
Yeah. 
So let's say MPM, refine, add 

830
01:01:29,920 --> 01:01:36,920
provider, refine, OK, run, 
refine, add provider. 

831
01:01:37,560 --> 01:01:44,520
Let's run this script and here 
let's pick off provider with 

832
01:01:44,520 --> 01:01:46,280
space. 
OK. 

833
01:01:46,920 --> 01:01:52,480
Yeah, enter now. 
So yeah, you can use the default

834
01:01:52,600 --> 01:01:54,400
path. 
I wonder if I should delete. 

835
01:01:55,360 --> 01:01:56,880
No, no, no, you don't need to do
anything. 

836
01:01:57,160 --> 01:01:59,640
You didn't report that. 
It can't say that it's not a 

837
01:01:59,640 --> 01:02:03,400
problem. 
Let's also our off provider. 

838
01:02:05,000 --> 01:02:10,920
So of course we're not going to 
implement like requests and 

839
01:02:10,920 --> 01:02:16,400
responses, cookies stuff. 
Just to give you idea that for 

840
01:02:16,400 --> 01:02:21,120
example in login, what you know 
is login accepts params, there 

841
01:02:21,120 --> 01:02:26,080
are e-mail and password. 
Let's assume that user sent 

842
01:02:26,080 --> 01:02:29,320
correct password. 
Let's write very secure code 

843
01:02:29,400 --> 01:02:31,520
here. 
Let's use local storage. 

844
01:02:33,160 --> 01:02:35,680
Very secure. 
Just a new idea like. 

845
01:02:35,800 --> 01:02:38,440
Of course it's not like real 
world exactly. 

846
01:02:39,160 --> 01:02:42,200
Instead of you can replace line 
11. 

847
01:02:42,760 --> 01:02:47,960
OK, gotcha. 
I see where the secure camera. 

848
01:02:49,120 --> 01:02:52,040
Is boiler very secure? 
Our provider? 

849
01:02:52,400 --> 01:02:55,880
Yeah, of course you can return 
successful error and stop. 

850
01:02:55,880 --> 01:03:00,920
Let's not go there. 
Secondly, we do want to do so. 

851
01:03:00,920 --> 01:03:05,400
Let's say we write our very 
secure params into local 

852
01:03:05,400 --> 01:03:07,600
storage. 
So let's go to check methods. 

853
01:03:07,720 --> 01:03:13,280
Let's skip register as well in 
our check method here where you 

854
01:03:13,280 --> 01:03:16,640
need to implement your checking 
authentication logic. 

855
01:03:17,080 --> 01:03:20,320
So let's write another one which
is very secure. 

856
01:03:22,280 --> 01:03:27,000
That sounds great. 
Yeah, let's just read all and 

857
01:03:27,560 --> 01:03:33,000
let's just say if not all that 
can stay, that can stay. 

858
01:03:33,480 --> 01:03:37,880
Sorry. 
As an else case, yeah, yeah. 

859
01:03:38,920 --> 01:03:45,720
So OK, let's implement logout 
again, just this one. 

860
01:03:45,760 --> 01:03:57,000
Remove item of. 
So normally since I work for 

861
01:03:57,000 --> 01:04:02,240
authentication company, I should
say like don't do this as we're 

862
01:04:02,240 --> 01:04:06,320
joking about like call out to 
your to your OIDC endpoints and 

863
01:04:06,320 --> 01:04:08,240
and do the full. 
Authentication. 

864
01:04:08,560 --> 01:04:14,800
By the way in our CRM example we
have next off example as well 

865
01:04:15,160 --> 01:04:17,880
which is like real solution 
unlike here. 

866
01:04:18,200 --> 01:04:21,840
But here in a limited time we 
want to provide concept like at 

867
01:04:21,840 --> 01:04:25,000
the end of the day you validate 
something, make request and 

868
01:04:25,120 --> 01:04:26,880
write it somewhere. 
Of course you need to have 

869
01:04:27,160 --> 01:04:32,000
course rules and like cookies 
and all this security stuff. 

870
01:04:32,360 --> 01:04:34,520
But we are keeping it simple 
here. 

871
01:04:34,520 --> 01:04:39,640
And forget identity, let's also 
have hard coded return 

872
01:04:41,000 --> 01:04:47,400
definition which is you. 
I like that the avatar was 

873
01:04:47,480 --> 01:04:51,440
that's that's pretty good. 
Yeah, you, I think you can 

874
01:04:51,440 --> 01:04:58,040
return remove the second return.
So now we have like very secure 

875
01:04:58,040 --> 01:05:04,080
authentication provider that we 
need to tell refine that we have

876
01:05:04,080 --> 01:05:07,280
all providers. 
So they need to use it that 

877
01:05:07,320 --> 01:05:10,560
exactly. 
Maybe you guess we need to pass 

878
01:05:10,560 --> 01:05:12,320
another prop to refine 
component. 

879
01:05:13,800 --> 01:05:19,680
Let's go out provider and just 
write the same thing. 

880
01:05:19,680 --> 01:05:25,120
I think it will import right? 
I think I got the. 

881
01:05:25,320 --> 01:05:31,320
Yes, so now we have all 
providers. 

882
01:05:31,320 --> 01:05:37,280
So refine knows if you ask to 
login it will do login. 

883
01:05:37,320 --> 01:05:41,760
If you do check, it will check 
and do this stuff. 

884
01:05:42,200 --> 01:05:46,000
But the problem is we didn't 
wrap anything with that. 

885
01:05:46,000 --> 01:05:51,280
So we just tell refine that if 
someone asks to check this 

886
01:05:51,280 --> 01:05:53,480
route, use this. 
But we didn't tell. 

887
01:05:53,680 --> 01:05:56,280
So for that we have 
authenticated component. 

888
01:05:56,800 --> 01:06:05,520
You can see this one. 
You can import it from refine 

889
01:06:05,520 --> 01:06:14,920
their core library. 
Yeah, what we need to do here is

890
01:06:15,680 --> 01:06:21,840
you can see at line 36, so we 
have team layout and all right, 

891
01:06:21,920 --> 01:06:25,840
let's on top of that wrap this 
all teamed layout with 

892
01:06:25,880 --> 01:06:31,280
authenticated components. 
And we need to press key as well

893
01:06:31,320 --> 01:06:35,880
to that. 
Let's say in case you may have 

894
01:06:35,880 --> 01:06:40,760
multiple, there are some box 
that different authenticated 

895
01:06:40,760 --> 01:06:46,080
components doesn't log out or so
we need to provide unique keys 

896
01:06:46,080 --> 01:06:48,560
React requirement. 
So you can say I don't know, 

897
01:06:48,760 --> 01:06:51,720
some string authenticated routes
or something like that. 

898
01:07:00,560 --> 01:07:10,200
Yeah, cool. 
So now, OK, we have nothing 

899
01:07:10,280 --> 01:07:14,360
here. 
If you go back to app, we have 

900
01:07:14,800 --> 01:07:21,040
nothing if you try to refresh 
like you can't go there to blog 

901
01:07:21,040 --> 01:07:25,680
posts route. 
So it's redirect you to long 

902
01:07:25,680 --> 01:07:29,720
page which doesn't exist now. 
So let's go with that. 

903
01:07:32,160 --> 01:07:36,560
So line 34, we wrapped our 
authenticated routes, right? 

904
01:07:37,160 --> 01:07:43,240
So let's go to closing element 
of 34 after 46 yeah, let's add a

905
01:07:43,240 --> 01:07:47,920
new route. 
Obviously give it path like 

906
01:07:48,120 --> 01:07:52,960
slash login as a prop to this 
route component not as children 

907
01:07:53,600 --> 01:08:04,480
is same like yeah path login and
we need to pass yeah so for that

908
01:08:04,480 --> 01:08:08,440
again you can build your 
authentication page on 

909
01:08:08,440 --> 01:08:13,160
everything. 
But we also have like some baked

910
01:08:13,360 --> 01:08:17,279
cooked solution for that you 
just need to import this off 

911
01:08:17,279 --> 01:08:21,560
page component. 
I think you can just type it 

912
01:08:21,560 --> 01:08:22,960
here. 
It should import. 

913
01:08:24,840 --> 01:08:28,279
By the way, I want to mention 
that refined them Core also had 

914
01:08:28,439 --> 01:08:32,240
this component, but obviously 
without any styling, just with 

915
01:08:32,240 --> 01:08:36,240
business logic, but again, like 
following the same logic off 

916
01:08:36,240 --> 01:08:38,800
page. 
Refine the Ant design package. 

917
01:08:38,840 --> 01:08:41,200
Yeah, this is this doesn't look 
really good. 

918
01:08:41,439 --> 01:08:45,080
So if you go back to update, 
import from core to refine the 

919
01:08:45,160 --> 01:08:49,560
Ant design. 
So let's import it from Ant 

920
01:08:49,560 --> 01:08:53,120
design. 
I think it's line seven. 

921
01:08:53,800 --> 01:08:55,960
No, not empty. 
Refine the empty. 

922
01:08:56,840 --> 01:09:00,160
Yeah. 
Yeah, that one, yes. 

923
01:09:01,479 --> 01:09:08,960
We'll just. 
Yeah, yeah, much more nicer. 

924
01:09:09,279 --> 01:09:13,840
So you can of course are very 
secure of provider will accept 

925
01:09:13,840 --> 01:09:19,479
any e-mail password you provide 
still what it's. 

926
01:09:19,560 --> 01:09:22,359
Probably my my standard Richard 
add example. 

927
01:09:23,920 --> 01:09:25,720
Yeah. 
Hey, we're in. 

928
01:09:26,040 --> 01:09:30,479
Yeah, wait, wait here. 
So we navigate it to if you 

929
01:09:31,279 --> 01:09:35,880
check that our provider, we 
navigate it to redirect to slash

930
01:09:36,040 --> 01:09:41,439
in our our provider and our 
first page is still welcome page

931
01:09:42,359 --> 01:09:48,080
if you see here, Yeah, after 
login, yeah, redirect to. 

932
01:09:48,439 --> 01:09:53,200
So for that also if you want to 
redirect users to certain page 

933
01:09:53,359 --> 01:09:55,280
you need to add resource 
definition. 

934
01:09:55,640 --> 01:09:58,040
Let's go with resource 
definition. 

935
01:09:58,040 --> 01:10:02,480
Go to FTS 6 again. 
Sorry, where am I going? 

936
01:10:03,080 --> 01:10:04,920
FTS 6. 
Oh, OK. 

937
01:10:06,360 --> 01:10:13,880
Let's pass another prop to 
refine component resources, 

938
01:10:13,960 --> 01:10:19,880
which is an array of objects. 
Yeah. 

939
01:10:20,040 --> 01:10:22,720
And let's give it the name Blog 
Dash posts. 

940
01:10:28,200 --> 01:10:33,200
And so our resource definitions 
are you just give it name and 

941
01:10:33,200 --> 01:10:39,040
you also provide pets routes. 
So after name, let's say list, 

942
01:10:40,120 --> 01:10:44,880
list. 
And for list it's going to be 

943
01:10:45,480 --> 01:10:49,840
slash blog dash posts. 
So the test we already define, 

944
01:10:50,200 --> 01:10:53,680
so this is telling refined this 
resources list page is living 

945
01:10:53,680 --> 01:10:55,720
there. 
I'm going to explain the details

946
01:10:55,720 --> 01:11:01,160
later, so let's replace our 
welcome page component with this

947
01:11:01,160 --> 01:11:07,160
one. 
Oops. 

948
01:11:08,120 --> 01:11:10,320
This one navigate the resource 
component. 

949
01:11:11,320 --> 01:11:17,120
We're doing. 
Navigate to resource welcome 

950
01:11:17,120 --> 01:11:20,000
page. 
Yeah, just oh, navigate to 

951
01:11:20,000 --> 01:11:24,040
resource. 
I'm sorry, I'm totally lost. 

952
01:11:25,120 --> 01:11:29,160
It's OK, sorry if I wasn't. 
So instead of welcome page 

953
01:11:29,160 --> 01:11:33,120
component you need to add 
navigate to resource component. 

954
01:11:33,880 --> 01:11:37,200
So replace. 
Yeah, I sent in the chat. 

955
01:11:37,280 --> 01:11:38,320
Oh, OK. 
Sorry, sorry. 

956
01:11:38,960 --> 01:11:41,120
Oops, sorry, I sent the wrong 
one. 

957
01:11:41,480 --> 01:11:46,680
This one. 
So instead of this, we're doing 

958
01:11:46,680 --> 01:11:48,080
this. 
Yeah. 

959
01:11:48,160 --> 01:11:54,640
So let's add import. 
Yeah, again like for Remix you 

960
01:11:54,640 --> 01:12:00,760
have different import, but so if
you go back to app again, so if 

961
01:12:00,760 --> 01:12:05,800
you go back to route. 
So what it does is it checks 

962
01:12:05,800 --> 01:12:09,280
your resources. 
You can of course pass resource 

963
01:12:09,280 --> 01:12:15,040
prop to it and explicitly set 
some resource, But if it doesn't

964
01:12:15,040 --> 01:12:18,800
find any resource, it will 
redirect user to do first 

965
01:12:19,080 --> 01:12:22,560
resource. 
Maybe we have some time to quit 

966
01:12:22,560 --> 01:12:24,240
that edit page. 
Let's do that. 

967
01:12:24,800 --> 01:12:28,720
That would be nice. 
So again, blog posts list, let's

968
01:12:28,720 --> 01:12:33,760
add blog post edit TS6 
component, yeah. 

969
01:12:39,000 --> 01:12:41,960
OK. 
So let's remove the hook. 

970
01:12:42,120 --> 01:12:45,240
We are not going to use use 
table here. 

971
01:12:47,480 --> 01:12:53,120
So first thing we want to do is 
add import form from Ant design 

972
01:12:53,320 --> 01:13:04,320
itself. 
All right, yeah, let's replace 

973
01:13:04,360 --> 01:13:16,800
all return definition with form 
and also let's I'm going to give

974
01:13:16,800 --> 01:13:21,240
you that to save some time 
because they are repetitive 

975
01:13:21,320 --> 01:13:26,680
stuff and design requires. 
Let's add this form items as 

976
01:13:26,680 --> 01:13:32,760
chill form component. 
I didn't send you form though, 

977
01:13:32,760 --> 01:13:41,440
sorry. 
Yeah, like you can update 

978
01:13:41,440 --> 01:13:47,160
imports select also from Yeah. 
Funny, usually it gives me a 

979
01:13:47,160 --> 01:13:48,920
nice prompt. 
I don't know why not Oops. 

980
01:13:51,120 --> 01:13:54,480
I use command dot. 
It auto imports. 

981
01:13:54,480 --> 01:13:57,040
Oh really nice. 
Let's. 

982
01:13:57,240 --> 01:14:01,280
So obviously for graphical we 
need to have some mutation to 

983
01:14:01,280 --> 01:14:05,680
send to your back end. 
I send you mutation code as 

984
01:14:05,680 --> 01:14:09,080
well. 
Let's move it into our queries 

985
01:14:09,080 --> 01:14:15,040
TS file. 
So normally so you're going to 

986
01:14:15,720 --> 01:14:19,280
render edit form but this is 
only mutation. 

987
01:14:19,440 --> 01:14:25,040
So when all your data available 
so you need another query to get

988
01:14:25,040 --> 01:14:30,840
existing data. 
We have some like nice feature 

989
01:14:30,840 --> 01:14:33,200
there. 
We convert your mutation into 

990
01:14:33,200 --> 01:14:35,640
graphical query to populate 
initial data. 

991
01:14:36,240 --> 01:14:46,080
So let's here, let's import use 
form again from Let me wait send

992
01:14:46,080 --> 01:14:51,760
you here again refine their core
also has use form, but we have 

993
01:14:51,760 --> 01:14:56,440
Ant design library use form 
hook, which is again compatible 

994
01:14:56,440 --> 01:15:00,640
with Ant design form. 
Yeah. 

995
01:15:00,640 --> 01:15:04,200
And the I think you need to move
it inside the component. 

996
01:15:06,280 --> 01:15:12,120
Yes, Sir. 
So again, as you can see, we 

997
01:15:12,120 --> 01:15:15,280
have form probes. 
Let's test them to form 

998
01:15:15,280 --> 01:15:19,520
component. 
Yeah. 

999
01:15:19,520 --> 01:15:24,520
And finally, we need to add 
route definition in our FTS 6 

1000
01:15:24,520 --> 01:15:32,040
again, if we haven't already. 
So let me give you the 

1001
01:15:32,040 --> 01:15:35,240
definition for that to save you 
some time. 

1002
01:15:35,640 --> 01:15:41,800
So for resource definition you 
need to add edit blog posts ID 

1003
01:15:41,800 --> 01:15:54,680
edit and for route definition 
you need to have this one. 

1004
01:15:57,360 --> 01:16:05,410
OK. 
I'm not sure if your component 

1005
01:16:05,410 --> 01:16:08,600
name is the same, but like. 
Yeah, let's. 

1006
01:16:09,960 --> 01:16:18,000
Update Let's go to blog post 
Edit Yeah. 

1007
01:16:21,280 --> 01:16:26,920
Cool. 
And we need definition. 

1008
01:16:27,480 --> 01:16:32,280
We need to also pass edit, so 
refine knows where to find this 

1009
01:16:32,360 --> 01:16:37,440
edit routes in reserve 
definition if you go top of the 

1010
01:16:37,440 --> 01:16:45,080
page list. 
And yes, so like to clarify, 

1011
01:16:45,680 --> 01:16:49,480
this is not like hard 
requirement, but I'm going to 

1012
01:16:49,480 --> 01:16:53,440
show you why it's useful for us.
So if you go back to app, 

1013
01:16:56,000 --> 01:17:00,480
finally, we need to add button. 
Let me give you that as well. 

1014
01:17:01,200 --> 01:17:05,320
This one in our list page, we 
need to add another column. 

1015
01:17:06,960 --> 01:17:10,880
So this let me explain the code 
as we copy pasted. 

1016
01:17:11,920 --> 01:17:16,360
So you need to import edit 
button from and design refine 

1017
01:17:16,360 --> 01:17:24,070
there and T package. 
Yeah. 

1018
01:17:27,390 --> 01:17:34,720
It is not liking this. 
Oh yeah, I sorry. 

1019
01:17:35,240 --> 01:17:41,520
So the thing with that we use ID
as data index because the we 

1020
01:17:41,520 --> 01:17:45,240
need to know which record to 
edit so we need to get ID. 

1021
01:17:45,240 --> 01:17:48,040
So we use ID and edit button 
again. 

1022
01:17:48,920 --> 01:17:53,320
This some like flavor that you 
can build yourself. 

1023
01:17:53,560 --> 01:17:59,600
But if you if you have I 18 and 
like different languages 

1024
01:17:59,600 --> 01:18:04,120
translations and I'm going to 
show you if we have time left, 

1025
01:18:04,360 --> 01:18:08,520
like authorization, for example,
you can say no users should be 

1026
01:18:08,520 --> 01:18:11,040
able to edit. 
So this edit button will be 

1027
01:18:11,280 --> 01:18:15,280
disabled by default. 
So but you can do it yourself. 

1028
01:18:15,880 --> 01:18:21,480
So let's click that. 
Hopefully it will render our not

1029
01:18:21,600 --> 01:18:28,560
so looking good page. 
So last thing I want to do is to

1030
01:18:29,640 --> 01:18:35,440
import this one. 
Let's wrap our edit page with 

1031
01:18:35,640 --> 01:18:39,520
edit component from again refine
the and the package. 

1032
01:18:40,400 --> 01:18:46,080
Is it the entire form? 
Yeah, above form, yeah, yeah. 

1033
01:18:46,920 --> 01:18:52,120
And let's close it as well. 
And also this save button props 

1034
01:18:52,120 --> 01:18:57,680
is coming from use form hook. 
I think we already imported 

1035
01:18:57,680 --> 01:19:02,840
that. 
Let's import edit compound from 

1036
01:19:02,840 --> 01:19:06,920
refine dev and T Yes, we. 
So let's see the page. 

1037
01:19:08,200 --> 01:19:11,880
So yeah, it looks kind of 
better. 

1038
01:19:13,680 --> 01:19:15,600
What about the? 
The data coming. 

1039
01:19:15,600 --> 01:19:16,920
Through. 
Yeah, exactly. 

1040
01:19:17,040 --> 01:19:20,080
Let's go with that. 
So let's go back to edit page 

1041
01:19:20,080 --> 01:19:27,760
again. 
I mean the code, sorry, use 

1042
01:19:27,760 --> 01:19:29,800
form. 
Where did we import use form? 

1043
01:19:29,800 --> 01:19:37,160
From Anthony. 
Yes, decon mutation form props 

1044
01:19:37,640 --> 01:19:42,120
post edit mutation. 
Yeah, by now we should have. 

1045
01:19:42,840 --> 01:19:45,400
What about the like default 
data? 

1046
01:19:47,120 --> 01:19:51,800
Oh, I guess it does have ID. 
Yeah, if you go back to edit, we

1047
01:19:51,800 --> 01:19:54,400
have some spaces. 
Could you delete them? 

1048
01:19:55,280 --> 01:20:08,320
Oh yeah, in here. 
Yeah, yeah, Form item, let's go 

1049
01:20:08,320 --> 01:20:12,600
to edit page. 
Yeah, we have drop down and 

1050
01:20:13,280 --> 01:20:16,840
everything. 
If you go draft for example. 

1051
01:20:17,160 --> 01:20:26,760
So if I change this to. 
Yeah, so one thing here, if you 

1052
01:20:27,040 --> 01:20:30,680
notice that your updated 
component record went to the 

1053
01:20:30,680 --> 01:20:33,760
last let's go to list page to 
quick fix that. 

1054
01:20:34,280 --> 01:20:40,760
We want to see updated, updated 
records first. 

1055
01:20:40,760 --> 01:20:46,320
So you need to do pass this prop
into your stable hook. 

1056
01:20:47,360 --> 01:20:52,640
Let me explain it without like 
copy pasting is sometimes fine 

1057
01:20:52,680 --> 01:20:54,160
as long as you know what you're 
doing. 

1058
01:20:54,440 --> 01:20:58,200
So let me explain. 
So let's paste it first. 

1059
01:20:59,240 --> 01:21:05,080
So this use table accepts props 
like filters and stuff. 

1060
01:21:05,360 --> 01:21:10,120
So what we are doing here, we 
are adding initial sorter that 

1061
01:21:10,240 --> 01:21:16,680
is applied by default. 
What we say is updated it field 

1062
01:21:16,760 --> 01:21:20,000
order descending. 
So let's save it and refresh the

1063
01:21:20,000 --> 01:21:28,000
page. 
So now we see this record first,

1064
01:21:28,440 --> 01:21:32,520
of course, not updated record. 
But one thing I want to mention 

1065
01:21:32,520 --> 01:21:39,200
that if you sort by ID, for 
example, in the browser, I mean,

1066
01:21:39,200 --> 01:21:44,800
no, no, no, in the browser, 
let's sort by ID and add some 

1067
01:21:45,120 --> 01:21:50,360
filter, status filter, any 
filter rejected. 

1068
01:21:50,680 --> 01:21:53,800
Yeah. 
And let's say you have these 

1069
01:21:53,800 --> 01:21:56,040
results you want to share with 
your colleague. 

1070
01:21:56,280 --> 01:22:02,600
And if you refresh the page, now
everything's lost. 

1071
01:22:02,880 --> 01:22:09,160
So because they are not 
persisted in query T, So also we

1072
01:22:09,160 --> 01:22:15,920
have an easy solution for that. 
For this one, you need to pass 

1073
01:22:15,920 --> 01:22:20,600
this prop to refine components 
options, sync with location 

1074
01:22:20,600 --> 01:22:29,440
through into app in FTS 6 refine
component as a new prop. 

1075
01:22:29,600 --> 01:22:35,760
Yeah, yeah. 
So let's go back now. 

1076
01:22:35,760 --> 01:22:39,160
As you can see, like we already 
have query parameters persisted.

1077
01:22:39,560 --> 01:22:42,320
So if you change the filters, 
query params will change as 

1078
01:22:42,320 --> 01:22:45,760
well. 
So if you share this link they 

1079
01:22:45,760 --> 01:22:51,800
will stay there. 
Also, and maybe I don't know how

1080
01:22:51,800 --> 01:22:56,720
much time left, but one final 
thing I want to show is editing 

1081
01:22:56,720 --> 01:23:02,280
live provider. 
So if you create like open edit 

1082
01:23:02,280 --> 01:23:07,560
page in a new tab, for example, 
or the browser, no, no, go to 

1083
01:23:09,360 --> 01:23:11,760
open edit page in a new tab. 
Let's keep it here. 

1084
01:23:11,760 --> 01:23:16,920
So go back to this page list 
page, I mean in the browser 

1085
01:23:16,920 --> 01:23:18,240
again. 
Oh, sorry. 

1086
01:23:19,240 --> 01:23:23,040
So what I want to show you is 
that we are going to update 

1087
01:23:23,040 --> 01:23:26,760
record with ID 5 right? 
Yep, I think. 

1088
01:23:28,080 --> 01:23:34,480
So if you update it, do 
something and yeah, go back. 

1089
01:23:34,520 --> 01:23:37,600
And if you go to list page, 
there is nothing exchange you. 

1090
01:23:37,800 --> 01:23:41,720
You cannot see updated record 
because you don't have real time

1091
01:23:41,720 --> 01:23:45,880
integration. 
So it's actually easy to add 

1092
01:23:45,880 --> 01:23:49,240
with that should take no more 
than 5 minutes. 

1093
01:23:49,520 --> 01:23:53,720
But if you go back to this 
documentation page again, we 

1094
01:23:53,720 --> 01:23:58,560
also have light provider. 
First thing you need to do is to

1095
01:23:58,560 --> 01:24:04,160
install Graphql VS package. 
Second one, yeah, let's install 

1096
01:24:04,160 --> 01:24:09,960
and while it's being installed, 
let's go to documentation again.

1097
01:24:11,720 --> 01:24:13,920
Yeah, we have real time section 
there. 

1098
01:24:15,240 --> 01:24:19,200
Real time section on the right 
side, yes. 

1099
01:24:19,480 --> 01:24:24,280
So addition to that, you need to
import create client from 

1100
01:24:24,280 --> 01:24:30,480
Graphql VS it's Graphql 
Websocket client connection and 

1101
01:24:30,920 --> 01:24:43,000
in app TS6, of course, yeah. 
And also VS clients, yeah, 

1102
01:24:43,120 --> 01:24:47,240
instead of HTTPS, we use 
Websocket protocol. 

1103
01:24:48,560 --> 01:24:52,160
Yeah, let's import live provider
from exactly. 

1104
01:24:52,160 --> 01:24:54,280
Now we need to initialize VS 
client. 

1105
01:24:54,560 --> 01:25:02,320
If you go back to documentation,
it's yeah, just that yeah. 

1106
01:25:02,320 --> 01:25:10,720
So now finally we need to enable
live mode next to sync with 

1107
01:25:10,720 --> 01:25:13,560
location. 
You can press live mode auto 

1108
01:25:14,520 --> 01:25:18,920
true. 
It should auto complete for you.

1109
01:25:19,240 --> 01:25:22,640
Yes. 
So let's do the same thing again

1110
01:25:22,640 --> 01:25:24,840
and see if we. 
Can. 

1111
01:25:25,280 --> 01:25:28,560
That's it. 
It's further go like this. 

1112
01:25:29,560 --> 01:25:41,720
Yeah, 
let's check it doesn't work. 

1113
01:25:42,120 --> 01:25:44,680
Let me let me refresh once just 
to make sure. 

1114
01:25:44,880 --> 01:25:48,760
Yeah, it didn't accept like 
render provider. 

1115
01:25:51,200 --> 01:25:52,480
There you go. 
It's. 

1116
01:25:52,800 --> 01:25:56,080
You can change status or 
anything so. 

1117
01:25:57,640 --> 01:26:01,080
I think these are sorted by 
status, so. 

1118
01:26:02,000 --> 01:26:04,480
Oh, maybe not. 
OK, so. 

1119
01:26:09,320 --> 01:26:11,760
If you click that, did this 
happen? 

1120
01:26:11,760 --> 01:26:16,480
No. 
No, the I the title did. 

1121
01:26:16,480 --> 01:26:19,360
I don't know if it's not seeing 
a subcategory like that. 

1122
01:26:22,280 --> 01:26:27,680
Oh yeah, as you say, there's a 
sorter so it's not in the. 

1123
01:26:28,240 --> 01:26:33,320
I think you can just navigate to
page again, like without any 

1124
01:26:33,320 --> 01:26:40,840
filters or sorters on the list 
page, just blog posts and let's 

1125
01:26:40,840 --> 01:26:51,360
try to edit ID 5 again. 
Yeah, there you go. 

1126
01:26:52,640 --> 01:26:56,080
It took a bit like. 
Oh, that's fantastic. 

1127
01:26:56,880 --> 01:27:00,160
You know, I, I really love this.
So I used to work at app right 

1128
01:27:00,160 --> 01:27:05,080
as a Devrel as well. 
And the the idea of like having 

1129
01:27:05,080 --> 01:27:08,120
to set up all of the, the 
different live syncing and like 

1130
01:27:08,200 --> 01:27:11,880
all this table stuff, but having
refined just automatically do 

1131
01:27:11,880 --> 01:27:14,800
this, especially being able to 
put AUI wrapper already in 

1132
01:27:14,800 --> 01:27:17,560
there, like that's a huge step 
in my mind. 

1133
01:27:17,560 --> 01:27:21,120
So that's really cool. 
I'll be excited to try this out 

1134
01:27:21,120 --> 01:27:23,920
with some Firebase stuff. 
I didn't know there was a a 

1135
01:27:23,920 --> 01:27:26,480
community edition with it, so 
I'm pretty pumped about that as 

1136
01:27:26,480 --> 01:27:30,160
a Firebase GD. 
Is there anything else that I'm 

1137
01:27:30,160 --> 01:27:32,120
missing? 
We have just a couple minutes. 

1138
01:27:32,120 --> 01:27:36,280
Maybe one final like Steve, just
one more thing. 

1139
01:27:36,600 --> 01:27:41,520
We can just try to enable this 
notification provider prop just 

1140
01:27:41,600 --> 01:27:46,520
to see the difference. 
It's, it's the same with all 

1141
01:27:46,520 --> 01:27:49,240
other features. 
So you can just enable 

1142
01:27:49,240 --> 01:27:52,560
notification provider at line 
38, I guess. 

1143
01:27:53,000 --> 01:27:55,640
Yeah. 
So let's go back to edit and 

1144
01:27:55,640 --> 01:27:58,840
record. 
Like it doesn't matter. 

1145
01:28:00,400 --> 01:28:04,160
OK, so let's edit a record. 
Just do something, I don't know,

1146
01:28:04,600 --> 01:28:09,480
test or anything. 
And so now you have success 

1147
01:28:09,480 --> 01:28:11,360
notification, error 
notification. 

1148
01:28:11,720 --> 01:28:16,440
It's also as simple as that, 
like, like I think main benefit 

1149
01:28:16,440 --> 01:28:23,440
of refining is our core package 
provides centralized contract 

1150
01:28:23,520 --> 01:28:27,160
for all other integrations. 
So you don't need to do bike 

1151
01:28:27,160 --> 01:28:31,200
shedding long discussions. 
And like this is as long as you 

1152
01:28:31,200 --> 01:28:36,760
comply with refined contracts, 
interfaces and all you, you know

1153
01:28:36,760 --> 01:28:40,000
that it will work. 
It will just work like I don't 

1154
01:28:40,000 --> 01:28:43,320
need to do anything special as 
long as I satisfy this 

1155
01:28:43,320 --> 01:28:46,160
parameters, responses, types, 
whatever. 

1156
01:28:46,480 --> 01:28:50,320
You know the rest of your whole 
application is going to work 

1157
01:28:50,320 --> 01:28:55,720
like you want to change your, I 
don't know, notification color 

1158
01:28:55,800 --> 01:28:58,720
to slightly something different.
You just do it in a one place 

1159
01:28:58,720 --> 01:29:00,840
and it it just works. 
How? 

1160
01:29:00,960 --> 01:29:03,960
How straightforward is it to 
like switch from Ant design to 

1161
01:29:03,960 --> 01:29:06,840
material UI or something? 
Is it just kind of find and 

1162
01:29:06,840 --> 01:29:11,360
replace? 
Yeah, like it's, it's again, 

1163
01:29:11,360 --> 01:29:15,120
it's not about refine. 
It's like it's a question for 

1164
01:29:15,120 --> 01:29:20,160
how can I migrate to Material UI
from Ant design? 

1165
01:29:20,440 --> 01:29:24,400
Because as I said, refine 
provides hooks. 

1166
01:29:24,560 --> 01:29:28,520
So we imported use table from 
Refinder ante. 

1167
01:29:28,720 --> 01:29:31,800
If you're going to use Material 
UI, you're going to import the 

1168
01:29:31,800 --> 01:29:34,520
same one from Refinder MUI 
package. 

1169
01:29:34,800 --> 01:29:39,360
And then the rest of the work is
about updating your Ant 

1170
01:29:39,360 --> 01:29:42,280
designing ports with Material UI
and things like that. 

1171
01:29:42,280 --> 01:29:45,800
But you don't need to change 
your routes, you don't need to 

1172
01:29:45,800 --> 01:29:49,800
change your definitions, data 
provider and nothing, just 

1173
01:29:50,600 --> 01:29:54,400
components. 
So we like kind of provide mix 

1174
01:29:54,400 --> 01:29:57,600
and match approach that you can 
put different things together 

1175
01:29:57,600 --> 01:30:00,120
and they will just work. 
Of course you will need to 

1176
01:30:00,480 --> 01:30:05,120
import notification provider 
from we as well, but it's as 

1177
01:30:05,120 --> 01:30:08,360
simple as that like. 
Well, very cool. 

1178
01:30:08,360 --> 01:30:11,000
I really appreciate the 
walkthrough and I hope everybody

1179
01:30:11,000 --> 01:30:13,360
goes out and tries out refine 
today. 

1180
01:30:13,360 --> 01:30:15,760
So thank you so much. 
We'll see you all next time. 

1181
01:30:16,840 --> 01:30:20,040
Yeah, thank you. 
For people who are interested, 

1182
01:30:20,520 --> 01:30:25,680
we have this source code of this
repository. 

1183
01:30:26,640 --> 01:30:31,320
Let me send you link real quick 
if they want to, like we skipped

1184
01:30:31,360 --> 01:30:35,080
authorization and some stuff, 
but they can find the full 

1185
01:30:35,080 --> 01:30:40,280
source code here with some 
select options. 

1186
01:30:40,280 --> 01:30:42,960
Filter by. 
Options and I'll, I'll put the 

1187
01:30:42,960 --> 01:30:46,200
official one on our coding cat 
page as well, so you can get 

1188
01:30:46,200 --> 01:30:47,560
back to it. 
Very cool. 

1189
01:30:47,880 --> 01:30:49,960
All right, we'll see you all. 
Thanks. 

1190
01:30:50,160 --> 01:30:50,680
Bye bye.
