Skip to content

RoyAppeldoorn/next-quote

Repository files navigation


Next Quote

Next Quote - Which quote is funnier?

An application for voting on your favourite technology/development quotes. It's like ranking the stars but for geeks ✨.

Gitter

next-quote

Features

  • Vote between two quotes
  • See the overall results (cached and revalidated after 10 minutes once a user visits the /results page)

Tech-stack

Installation and Setup Instructions

Prerequisite:

  • Local MySQL database / Planetscale database with local connection

Clone down this repository. You will need node and npm installed globally on your machine.

Setup

  1. npm install
  2. Create .env file
  3. Add a DATABASE_URL= variable with the connection string to your MySQL instance
  4. Generate artifacts (e.g. Prisma Client) - npx prisma generate
  5. Generate db schema - npx prisma db push
  6. Seed the database with quotes - npm run ts-node ./scripts/db-backfill.ts
  7. Run the dev server - npm run dev

About

🗳️ Vote for the funniest technology quote

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published