Fireship · @fireship

Redwood in 100 Seconds

Uploaded June 6, 2022 · Length 2:32

Redwood in 100 Seconds

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.

  1. 0:00

    Redwood JS an opinionated full stack

  2. 0:02

    JavaScript framework for building big

  3. 0:04

    ambitious startups as we all know the

  4. 0:06

    JavaScript ecosystem is incredibly

  5. 0:08

    complex with millions of different tools

  6. 0:10

    to choose from when architecting an app

  7. 0:12

    Redwood takes a collection of the most

  8. 0:13

    battle tested Technologies like react

  9. 0:15

    Prisma graphql storybook and jest then

  10. 0:18

    weaves them together so developers can

  11. 0:20

    get things done quickly and reliably it

  12. 0:22

    was developed by a team of software

  13. 0:24

    Engineers that includes the co-founder

  14. 0:25

    of GitHub and hit version 1.0 in 2022 it

  15. 0:28

    has its own custom router for

  16. 0:29

    server-side rendering but unlike many

  17. 0:31

    other Frameworks it doesn't use the file

  18. 0:33

    system and instead puts all routes in a

  19. 0:35

    single file with automatic code

  20. 0:37

    splitting for each page most importantly

  21. 0:39

    though it provides abstractions to

  22. 0:41

    connect your front-end UI to a back-end

  23. 0:43

    relational database via a graphql API

  24. 0:46

    its rails inspired CLI can quickly

  25. 0:48

    generate the code required to build

  26. 0:50

    complex features and not just build them

  27. 0:52

    but also test them with jest and

  28. 0:54

    storybook it ships with Apollo client by

  29. 0:56

    default making it easy for the front end

  30. 0:58

    to consume data from the graphql API and

  31. 1:00

    when it comes time for deployment the

  32. 1:02

    code can easily run on a standalone

  33. 1:03

    server or your favorite serverless

  34. 1:05

    infrastructure to get started generate a

  35. 1:07

    new Redwood project with yarn the front

  36. 1:09

    end code is managed in the web directory

  37. 1:11

    it's a react app that's wrapped with the

  38. 1:13

    Redwood provider with routes as the main

  39. 1:15

    entry point for the UI the routes

  40. 1:16

    component is a collection of URL

  41. 1:18

    patterns that point to a specific

  42. 1:20

    component which is defined in the Pages

  43. 1:22

    directory all pages are automatically

  44. 1:24

    imported here keeping your code nice and

  45. 1:26

    concise in addition all pages are

  46. 1:28

    automatically lazy loaded with code

  47. 1:29

    splitting making your load times as fast

  48. 1:31

    as possible it also contains a layout

  49. 1:33

    system to share UI across different

  50. 1:35

    routes now the back end is organized in

  51. 1:38

    the API directory which uses Prisma to

  52. 1:40

    manage the database schema but also

  53. 1:42

    provides the tools required to build a

  54. 1:44

    full-fledged graphql API to access your

  55. 1:46

    data the back end can also Define its

  56. 1:48

    own custom serverless functions or

  57. 1:50

    directives which operate like middleware

  58. 1:52

    to handle concerns like user

  59. 1:53

    authentication what's really cool though

  60. 1:55

    is Redwood provides an abstraction

  61. 1:57

    called a cell to simplify complex data

  62. 1:59

    fetching a cell is just a component that