Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Cardy GH - a custom card for your GitHub repository

Notifications You must be signed in to change notification settings

joaonmatos/superchat-frontend-challenge

Repository files navigation

Cardy GH

Cardy GH is a small app that generates preview cards on the fly for your favourite GitHub repositories.

Just insert the owner's username and the repository name, and select a theme color, and get a short link for your card, ready for you to share on your socials.

Some Screenshots

  • You see this page when you enter the website:

Index page with card creation form

  • When you visit a card using its shortlink:

Card page for an example repo (Kubernetes)

How did you create this app?

This app is created using NextJS and TypeScript.

For the frontend, I am using TailwindCSS and CSS Modules.

For the backend, I am using PostgreSQL to store the links and Octokit to access the GitHub API.

The app is currently hosted on Vercel and the database is hosted on Heroku.

Why did you create this app?

I was challenged to do so by the awesome folks at SuperChat. It was fun to get to take a bunch of technologies I had not used, particularly on the frontend, and bang my head against the wall to make things happen.

How can I run it?

  1. Stand up your PostgreSQL database
  2. Use the file at /resources/db/schema.sql to set the db schema
  3. Set the DATABASE_URL environmental variable to the connection string for the server
  4. Set the CANONICAL_ROOT environmental variable to the servers domain
  5. Build with npm run build
  6. Start with npm run start