/hackernew-clone-nextjs-react-query

A sample hacker news clone with next.js, react-query and tailwindcss

Primary LanguageJavaScript

Hackernew clone

This is a pet project that illustrates how to implement a hackernew clone with next.js, react-query, tailwindcss with a graphql backend.

Screen Shot 2022-07-16 at 3 59 07 PM

prerequisite

curl https://codeload.github.com/howtographql/react-apollo/tar.gz/starter | tar -xz --strip=1 react-apollo-starter/server
  • then cd into the server folder
  • run npx prisma generate
  • run npm run dev

and keep the backend graphql server running

Starting the UI server

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.