RUVIDEO
Поделитесь видео 🙏

MERN Stack & GraphQL - #10 Authentication (Part 2)

In this follow-up video, we will pick up right where we left off in the last episode, and finish up the authentication portion of the app. Be sure to check out part one in case you've missed it https://youtu.be/zNcNghhKZjo Here are a few points that will help you navigate through the video.

Passing cookies in GraphQL Playground

For quite some time, GraphQL playground had a bug where the settings configured from Node were not respected in React on the front-end. (I even filed the issue myself back in June https://github.com/prisma/graphql-playground/issues/748) One workaround was to manually set "request.credentials" to either "include" or "same-origin" from the browser. While you can still configure the playground client-side, those changes only last for the duration of the browser session, and thus need to be re-entered every so often.

To apply the settings permanently, we need to persist them server-side. Thanks to this PR merged in October https://github.com/prisma/graphql-playground/pull/836 we can now do so in 1.8.0 release https://github.com/prisma/graphql-playground/releases/tag/v1.8.0 However, in apollo-server, you'll find this package under @apollographql/graphql-playground-html https://github.com/prisma/graphql-playground/tree/master/packages/graphql-playground-html, and the working version is 1.6.4

Installing Redis CLI Client

If you're using RaaS (Redis-as-a-Service) like Redis Labs, you would want to tinker around with Redis from the terminal on your local machine. Of course, you don't want to install a full-fledged Redis server on localhost just to get access to the built-in CLI utilities.

On Linux (Debian), you can install redis-cli only using "redis-tools" package https://stackoverflow.com/questions/21795340/linux-install-redis-cli-only On Mac, you could use Brew https://stackoverflow.com/questions/39704273/macos-x-is-there-a-way-to-install-only-redis-cli On Windows (and other OS too) you can install Redis Desktop manager. There are plenty more options, especially among GUI clients, so feel free to visit the docs to get a full picture https://redis.io/clients

As always, the code is on GitHub https://github.com/alex996/graphql-chat

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «MERN Stack & GraphQL - #10 Authentication (Part 2)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.