React Apollo Yarn Workspace Example

Поделиться
HTML-код
  • Опубликовано: 9 окт 2024
  • I create an example yarn workspace for React and Apollo Server.
    Code: github.com/ben...
    ----
    If you like cooking, checkout my side project: www.mysaffrona...
    ----
    Join the Discord: / discord
    ----
    Patreon: / benawad
    ----
    Follow Me Online Here:
    Twitch: / benawad
    GitHub: github.com/ben...
    LinkedIn: / benawad
    Instagram: / benawad97
    Twitter: / benawad
    #benawad
    TikTok: / benawad ​

    ----
    Follow me online: voidpet.com/be...
    #benawad

Комментарии • 22

  • @maykbrito
    @maykbrito 5 лет назад +5

    I loved this style of video Ben! Please, do it more often!! Cheers (from Brazil)

  • @mhezzetjr
    @mhezzetjr 5 лет назад +8

    18:00 use import * as yup from 'yup'

  • @nimashoghi
    @nimashoghi 5 лет назад +1

    For server-side validation, I'd recommend taking a look at graphql-shield. graphql-shield is an interesting Apollo Server middleware that lets you define a separate rules object which defines your validation rules (which may be yup schemas). I'm currently using this in a project with graphql-code-generator and some custom TypeScript mapped types and I'm quite happy with it.

    • @bawad
      @bawad  5 лет назад +1

      graphql-shield is great for permissions

  • @deresegetachew3987
    @deresegetachew3987 4 года назад

    Hi ben; It Would be interesting if you showed how to configure your .babelrc files and also how you deploy it to docker?

  • @OzanManav
    @OzanManav 5 лет назад +2

    I think at 18:37 It can be fixed by deleting the lock file.

  • @salma_techie
    @salma_techie 4 года назад

    having an issue running yarn start... error says "error Couldn't find a package.json"

  • @jackjsy
    @jackjsy 5 лет назад

    Would you still use type-graphql for bigger projects? when connecting to typeorm etc + more complex services, or is there another library you would think about using?

    • @bawad
      @bawad  5 лет назад

      yeah, I'm using type-graphql for www.mysaffronapp.com/

  • @javierh2k
    @javierh2k 5 лет назад +1

    Excelent

  • @arpee1337
    @arpee1337 5 лет назад

    Very useful content here

  • @jexxiewoo8390
    @jexxiewoo8390 5 лет назад

    Why set the variable with $ at 16:08? Thanks for explanation

    • @bawad
      @bawad  5 лет назад

      that's how you defined graphql variables

  • @vavanLet4ik
    @vavanLet4ik 3 года назад

    waht about publishing those packages ? e.g to Azure ?

  • @salma_techie
    @salma_techie 4 года назад

    I pity your keyboard hahaha

  • @carlosmed_
    @carlosmed_ 5 лет назад

    What Fish theme is that?

    • @bawad
      @bawad  5 лет назад

      gruvbox