Introducing Petsura

Introducing Petsura

Where pets find their forever homes!

Alex Kates's photo
Alex Kates
ยทMar 28, 2022ยท

2 min read

Table of contents

  • TL;DR
  • Intro
  • Motivation
  • How to use
  • Tech stack
  • Outro

TL;DR

My submission for the Hasura X Hashnode Hackathon is Petsura.

Help pets find their forever homes! Quickly scroll your feed of adoptable fluffs and share on Twitter, send an email to the foster, or open the pet directly in Petfinder

Petsura Screenshot

Petsura is powered by the Hasura platform, built using NextJS on Vercel, and leverages the Petfinder API.

Intro

Petsura is an Instagram-like web application that allows you to quickly browse through the adoptable pets found on Petfinder. When you find a fluff that sparks joy, you can share it on Twitter, contact the foster directly, or open the pet's full biography on Petfinder.

Motivation

I have three rescue animals that live with me, and I think the world would be a better place if more animals were adopted. I wanted to make an app that was basically Instagram for adoptable pets. Also, I've been itching to play with Hasura and this hackathon was a perfect time.

How to use

Feed

The main page is called the feed page. It displays 25 random, adoptable pets from the Petfinder API. Scroll the feed until you find a pet that sparks joy. You can load more pets when you arrive at the end of the feed.

When you find that special pet, you can do three different actions.

๐Ÿฆ Share the pet on Twitter.

๐Ÿ“ง Email the foster to express interest in adopting.

๐ŸŒ Open the pet's full biography on Petfinder.

Petsura actions including Tweet, Emails, and opening externally.

Tech stack

Hosting

Vercel is a platform for hosting full-stack web applications. Petsura uses Vercel to host the NextJS web application.

Web Framework

NextJS is the React framework for building modern, production-ready applications. Petsura is built on NextJS.

Styles

Tailwind CSS CSS framework that lets you rapidly build beautiful web pages without leaving your HTML files.

API

Hasura is a fully managed GraphQL platform. Petsura uses Hasura for its GraphQL API and also leverages the Action feature to integrate with an AWS APIGW.

Hasura Action Screen Shot

Hasura GraphQL Query Screen Shot

Serverless allows you to rapidly develop serverless applications in AWS. Petsura uses Serverless to build the APIGW and Lambda that integrates the Hasura GraphQL API with the Petfinder Rest API.

Apollo GraphQL Client is a great library to use in your React application to fetch data using GraphQL. Petsura uses the useQuery hook to interact with the Hasura.

Outro

I hope you enjoy using Petsura as much as I did building it! Let's connect on Twitter -> twitter.com/thealexkates

Did you find this article valuable?

Support Alex Kates by becoming a sponsor. Any amount is appreciated!

Learn more about Hashnode Sponsors
ย 
Share this