This is a simple "jamstack" application: HTML markdown, javascript, and an API. The API in this case is a GraphQL API hosted on StepZen. The GraphQL API is built on top of the DEV API, using StepZen's @rest
directive to connect a REST service. Learn more about using StepZen to easily create GraphQL APIs here.
You don't need a StepZen account to run this sample, but we've included a schema definition for the API in the stepzen
directory of this repository in case you want to run it on your own account. The schema we've included is much more complete than necessary for this application; it covers much more of the DEV api. Feel free to use it to build something cool!
This application has a form where you can provide a DEV.to username. Hitting submit will query the GraphQL API for some of the user's profile information (website and twitter), and retrieve the most recent article. Since this application is simple markdown and javascript, no application server is required. You can open index.html locally in a browser and it will work just the same as if deployed to a hosted endpoint.