Fireship · @fireship
Redwood in 100 Seconds
Uploaded June 6, 2022 · Length 2:32
Summary
Redwood JS framework explained in 100 seconds: opinionated full stack JavaScript for building ambitious startups.
- redwood js
- javascript framework
- full stack development
- startups
- react
- graphql
- prisma
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Redwood JS an opinionated full stack
- 0:02
JavaScript framework for building big
- 0:04
ambitious startups as we all know the
- 0:06
JavaScript ecosystem is incredibly
- 0:08
complex with millions of different tools
- 0:10
to choose from when architecting an app
- 0:12
Redwood takes a collection of the most
- 0:13
battle tested Technologies like react
- 0:15
Prisma graphql storybook and jest then
- 0:18
weaves them together so developers can
- 0:20
get things done quickly and reliably it
- 0:22
was developed by a team of software
- 0:24
Engineers that includes the co-founder
- 0:25
of GitHub and hit version 1.0 in 2022 it
- 0:28
has its own custom router for
- 0:29
server-side rendering but unlike many
- 0:31
other Frameworks it doesn't use the file
- 0:33
system and instead puts all routes in a
- 0:35
single file with automatic code
- 0:37
splitting for each page most importantly
- 0:39
though it provides abstractions to
- 0:41
connect your front-end UI to a back-end
- 0:43
relational database via a graphql API
- 0:46
its rails inspired CLI can quickly
- 0:48
generate the code required to build
- 0:50
complex features and not just build them
- 0:52
but also test them with jest and
- 0:54
storybook it ships with Apollo client by
- 0:56
default making it easy for the front end
- 0:58
to consume data from the graphql API and
- 1:00
when it comes time for deployment the
- 1:02
code can easily run on a standalone
- 1:03
server or your favorite serverless
- 1:05
infrastructure to get started generate a
- 1:07
new Redwood project with yarn the front
- 1:09
end code is managed in the web directory
- 1:11
it's a react app that's wrapped with the
- 1:13
Redwood provider with routes as the main
- 1:15
entry point for the UI the routes
- 1:16
component is a collection of URL
- 1:18
patterns that point to a specific
- 1:20
component which is defined in the Pages
- 1:22
directory all pages are automatically
- 1:24
imported here keeping your code nice and
- 1:26
concise in addition all pages are
- 1:28
automatically lazy loaded with code
- 1:29
splitting making your load times as fast
- 1:31
as possible it also contains a layout
- 1:33
system to share UI across different
- 1:35
routes now the back end is organized in
- 1:38
the API directory which uses Prisma to
- 1:40
manage the database schema but also
- 1:42
provides the tools required to build a
- 1:44
full-fledged graphql API to access your
- 1:46
data the back end can also Define its
- 1:48
own custom serverless functions or
- 1:50
directives which operate like middleware
- 1:52
to handle concerns like user
- 1:53
authentication what's really cool though
- 1:55
is Redwood provides an abstraction
- 1:57
called a cell to simplify complex data
- 1:59
fetching a cell is just a component that


