GraphQL para aplicaciones web y móviles simplificado

Rate this content
Bookmark

Construir aplicaciones web y móviles con GraphQL debería ser sencillo. Con Nhost, los desarrolladores construyen aplicaciones web y móviles con APIs GraphQL generadas automáticamente. En esta charla, te mostraremos cómo esto es ideal para los desarrolladores que desean aumentar la productividad sin preocuparse por la infraestructura.

6 min
08 Dec, 2021

Video Summary and Transcription

Enhost ofrece una infraestructura simple y accesible de GraphQL para aplicaciones web y móviles. Ofrecen una infraestructura sin servidor, encargándose de la configuración y la instalación, lo que permite a los desarrolladores centrarse en el desarrollo de aplicaciones. La pila de Enhost incluye una base de datos Postgres, una API GraphQL impulsada por Hasura, Hasura Auth para la autenticación, Hasura Storage para la carga de archivos y soporte para funciones en Node.js y Go. El backend es 100% de código abierto e incluye características como disparadores de eventos, una interfaz de línea de comandos (CLI) para el desarrollo local e integración con GitHub. Con Enhost, no hay excusas para no utilizar GraphQL y construir aplicaciones que los usuarios adoren.

Available in English

1. Enhost: Simple and Accessible GraphQL Backend

Short description:

Enhost proporciona un backend GraphQL simple y accesible para aplicaciones web y móviles. Ofrecen una infraestructura sin servidor, encargándose de la configuración y la instalación, lo que permite a los desarrolladores centrarse en el desarrollo de aplicaciones. La pila de Enhost incluye una base de datos Postgres, una API GraphQL impulsada por Hasura, Hasura Auth para la autenticación, Hasura Storage para la carga de archivos y soporte para funciones en Node.js y Go. El backend es 100% de código abierto e incluye características como disparadores de eventos, una CLI para desarrollo local e integración con GitHub. Con Enhost, no hay excusas para no utilizar GraphQL y construir aplicaciones que los usuarios adoren.

Hola, mi nombre es Johan. Soy el CEO y cofundador de Enhost. Enhost es una plataforma de backend como servicio. Y el título de esta charla es GraphQL para aplicaciones web y móviles simplificado. En Enhost, creemos que GraphQL debería ser simple y accesible para todos, no solo para grandes organizaciones como Facebook, GitHub, Stripe y otros que actualmente utilizan GraphQL. Si damos un paso atrás, pensamos y creemos que construir aplicaciones debería ser simple. Así que retrocedamos y veamos cuáles son algunos de los requisitos necesarios para construir una aplicación. Casi todas las aplicaciones tienen alguna variación de esto que necesitan. Necesitan una base de datos para almacenar información, una API para enviar información de ida y vuelta, preferiblemente una API GraphQL, autenticación para iniciar sesión de usuarios, almacenamiento para subir imágenes divertidas de gatos, funciones para ejecutar código personalizado. Y si es una aplicación web, probablemente también necesites algún tipo de alojamiento frontend. Lo que nos dimos cuenta es que todo en esta pila es relativamente fácil, excepto la capa de API GraphQL. Sin embargo, últimamente ha habido algunas innovaciones. Y una de ellas es Hasura. Hasura es un increíble software. Tienen un motor GraphQL que se encuentra sobre Postgres. Y en función de las tablas y columnas de tu base de datos Postgres, generará automáticamente una API GraphQL para ti. Es realmente hermoso, como dije, y tiene cerca de 25,000 estrellas en GitHub y es utilizado por grandes nombres de la industria. Y como dije, es principalmente un motor GraphQL que genera automáticamente la API para ti. Tiene suscripciones en tiempo real, pero también tiene otras cosas interesantes como disparadores de eventos, trabajos cron. Tiene una bonita consola web para administrar todo y mucho más. Así que en nuestro esfuerzo por hacer que la construcción de aplicaciones sea simple, este es nuestro viaje hacia el backend perfecto. Tenemos la base de datos, donde usamos Postgres, la API GraphQL, donde podemos usar Hasura. La autenticación la hemos resuelto mediante la publicación de nuestro propio servidor llamado Hasura Auth, que está integrado en Hasura y gestiona todo lo relacionado con la autenticación. Lo mismo ocurre con el almacenamiento, por lo que hemos publicado algo que llamamos Hasura Storage, que también está muy bien integrado en Hasura y donde puedes cargar cualquier archivo, básicamente cualquier objeto, y está respaldado por S3, por lo que los archivos se almacenan en AWS S3 o Minio. Para las funciones, podemos usar algo como Node.js y Go, y toda esta pila es 100% de código abierto, lo cual también es muy importante para nosotros. Volviendo a nuestro título inicial, GraphQL Simplificado, intentamos hacerlo simple proporcionando un backend sin servidor para aplicaciones web y móviles. Nos encargamos de la configuración, la instalación y toda la infraestructura, para que tú como desarrollador puedas centrarte en lo que es importante para tu aplicación y para tus usuarios. Puedes pensar en Enhost como lo que Netlify y Brazel hacen para el frontend. Ese es un modelo de pensamiento sobre lo que estamos haciendo. Ha habido mucha innovación en el frontend últimamente, y creemos que la próxima ola de innovación ocurrirá en el backend. Somos un backend sin servidor, y aquí hay algunas de las cosas que ofrecemos. Diría que la capa superior aquí es lo más importante de lo que ofrecemos, la base de datos, la API GraphQL y la autenticación, pero también te cubrimos en varias otras partes del backend. Como mencioné, almacenamiento, funciones, tenemos una CLI para desarrollo local, integración con GitHub para enviar tu código a GitHub, y nosotros nos encargaremos de implementar migraciones, metadatos y funciones automáticamente, disparadores de eventos y mucho más. Ahora realmente no hay excusas. GraphQL puede ser simple y accesible para todos. Ahora animo a todos aquí a construir aplicaciones que sean divertidas de desarrollar y que los usuarios adoren. Gracias. Gracias.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

GraphQL Galaxy 2021GraphQL Galaxy 2021
32 min
From GraphQL Zero to GraphQL Hero with RedwoodJS
Top Content
We all love GraphQL, but it can be daunting to get a server up and running and keep your code organized, maintainable, and testable over the long term. No more! Come watch as I go from an empty directory to a fully fledged GraphQL API in minutes flat. Plus, see how easy it is to use and create directives to clean up your code even more. You're gonna love GraphQL even more once you make things Redwood Easy!
Vue.js London Live 2021Vue.js London Live 2021
24 min
Local State and Server Cache: Finding a Balance
Top Content
How many times did you implement the same flow in your application: check, if data is already fetched from the server, if yes - render the data, if not - fetch this data and then render it? I think I've done it more than ten times myself and I've seen the question about this flow more than fifty times. Unfortunately, our go-to state management library, Vuex, doesn't provide any solution for this.For GraphQL-based application, there was an alternative to use Apollo client that provided tools for working with the cache. But what if you use REST? Luckily, now we have a Vue alternative to a react-query library that provides a nice solution for working with server cache. In this talk, I will explain the distinction between local application state and local server cache and do some live coding to show how to work with the latter.
GraphQL Galaxy 2022GraphQL Galaxy 2022
16 min
Step aside resolvers: a new approach to GraphQL execution
Though GraphQL is declarative, resolvers operate field-by-field, layer-by-layer, often resulting in unnecessary work for your business logic even when using techniques such as DataLoader. In this talk, Benjie will introduce his vision for a new general-purpose GraphQL execution strategy whose holistic approach could lead to significant efficiency and scalability gains for all GraphQL APIs.

Workshops on related topic

GraphQL Galaxy 2021GraphQL Galaxy 2021
140 min
Build with SvelteKit and GraphQL
Top Content
Featured WorkshopFree
Have you ever thought about building something that doesn't require a lot of boilerplate with a tiny bundle size? In this workshop, Scott Spence will go from hello world to covering routing and using endpoints in SvelteKit. You'll set up a backend GraphQL API then use GraphQL queries with SvelteKit to display the GraphQL API data. You'll build a fast secure project that uses SvelteKit's features, then deploy it as a fully static site. This course is for the Svelte curious who haven't had extensive experience with SvelteKit and want a deeper understanding of how to use it in practical applications.

Table of contents:
- Kick-off and Svelte introduction
- Initialise frontend project
- Tour of the SvelteKit skeleton project
- Configure backend project
- Query Data with GraphQL
- Fetching data to the frontend with GraphQL
- Styling
- Svelte directives
- Routing in SvelteKit
- Endpoints in SvelteKit
- Deploying to Netlify
- Navigation
- Mutations in GraphCMS
- Sending GraphQL Mutations via SvelteKit
- Q&A
React Advanced Conference 2022React Advanced Conference 2022
95 min
End-To-End Type Safety with React, GraphQL & Prisma
Featured WorkshopFree
In this workshop, you will get a first-hand look at what end-to-end type safety is and why it is important. To accomplish this, you’ll be building a GraphQL API using modern, relevant tools which will be consumed by a React client.
Prerequisites: - Node.js installed on your machine (12.2.X / 14.X)- It is recommended (but not required) to use VS Code for the practical tasks- An IDE installed (VSCode recommended)- (Good to have)*A basic understanding of Node.js, React, and TypeScript
GraphQL Galaxy 2022GraphQL Galaxy 2022
112 min
GraphQL for React Developers
Featured Workshop
There are many advantages to using GraphQL as a datasource for frontend development, compared to REST APIs. We developers in example need to write a lot of imperative code to retrieve data to display in our applications and handle state. With GraphQL you cannot only decrease the amount of code needed around data fetching and state-management you'll also get increased flexibility, better performance and most of all an improved developer experience. In this workshop you'll learn how GraphQL can improve your work as a frontend developer and how to handle GraphQL in your frontend React application.
React Summit 2022React Summit 2022
173 min
Build a Headless WordPress App with Next.js and WPGraphQL
Top Content
WorkshopFree
In this workshop, you’ll learn how to build a Next.js app that uses Apollo Client to fetch data from a headless WordPress backend and use it to render the pages of your app. You’ll learn when you should consider a headless WordPress architecture, how to turn a WordPress backend into a GraphQL server, how to compose queries using the GraphiQL IDE, how to colocate GraphQL fragments with your components, and more.
GraphQL Galaxy 2020GraphQL Galaxy 2020
106 min
Relational Database Modeling for GraphQL
Top Content
WorkshopFree
In this workshop we'll dig deeper into data modeling. We'll start with a discussion about various database types and how they map to GraphQL. Once that groundwork is laid out, the focus will shift to specific types of databases and how to build data models that work best for GraphQL within various scenarios.
Table of contentsPart 1 - Hour 1      a. Relational Database Data Modeling      b. Comparing Relational and NoSQL Databases      c. GraphQL with the Database in mindPart 2 - Hour 2      a. Designing Relational Data Models      b. Relationship, Building MultijoinsTables      c. GraphQL & Relational Data Modeling Query Complexities
Prerequisites      a. Data modeling tool. The trainer will be using dbdiagram      b. Postgres, albeit no need to install this locally, as I'll be using a Postgres Dicker image, from Docker Hub for all examples      c. Hasura
GraphQL Galaxy 2021GraphQL Galaxy 2021
48 min
Building GraphQL APIs on top of Ethereum with The Graph
WorkshopFree
The Graph is an indexing protocol for querying networks like Ethereum, IPFS, and other blockchains. Anyone can build and publish open APIs, called subgraphs, making data easily accessible.

In this workshop you’ll learn how to build a subgraph that indexes NFT blockchain data from the Foundation smart contract. We’ll deploy the API, and learn how to perform queries to retrieve data using various types of data access patterns, implementing filters and sorting.

By the end of the workshop, you should understand how to build and deploy performant APIs to The Graph to index data from any smart contract deployed to Ethereum.