Skip to content

eggheadio/course-review-image-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5b90202 · Dec 31, 2021

History

19 Commits
Dec 27, 2021
Dec 31, 2021
Nov 24, 2021
Nov 24, 2021
Nov 24, 2021
Dec 31, 2021
Nov 24, 2021
Nov 24, 2021
Nov 27, 2021
Nov 24, 2021
Nov 27, 2021

Repository files navigation

Generate an image of egghead.io course review that can be shared on social media.

Develop

  • run vercel dev
  • visit http://localhost:3000/api/image

Usage

queryString.stringifyUrl({
    url: 'https://share-learner-review.vercel.app/api/image',
    query: {
     review,
     rating,
     authorName,
     authorAvatar,
     courseIllustration,
     courseTitle,
     instructorName,
     instructorAvatar
    }

Try it out with ScriptKit:
https://stackblitz.com/edit/node-y87rgy?file=scripts%2Fshare-review.js

Example