/sharewithme-react-graphql

Useful Sources Sharing Website built with React, GraphQL and Apollo

Primary LanguageJavaScript

Share With Me

Let's share useful links that a developer should visit!

How to locally use the app

  1. Clone https://github.com/AdrianTan914/sharewithme-react-graphql

  2. Install dependencies and deploy the Prisma database API Run the following commands:

$ yarn global add prisma
$ cd sharewithme-react-graphql/server
$ yarn install
$ prisma deploy

Select Demo server OR run Prisma locally via Docker

  1. Run the server
$ cd sharewithme-react-graphql/server
$ yarn start
  1. Run the app In sharewithme-react-graphql directory,
$ yarn install
$ yarn start

Deployment with Heroku

Coming soon!

Features

  • Display a list of links
  • Search the list of links
  • Users can authenticate
  • Authenticated users can create new links
  • Authenticated users can upvote links (one vote per link and user)
  • Realtime updates when other users upvote a link or create a new one

Tech

  • Frontend:
    • React for building user interfaces
    • Apolli Client: Production-ready, caching GraphQL client
  • Backend:
    • graphql-yoga: Fully-featured GraphQL Server
    • Prisma: GraphQL API layer that turns database into a GraphQL API