Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

willemliu/universal-comments

Repository files navigation

DEPRECATED ❗ : Will no longer work after Manifest v3 rolled out.

universal-comments

Take only memories, leave only comments

This is the web application powering the Universal Comments browser plugin (repository).

Universal Comments extension:

Development

Prerequisites

  1. NodeJS v12+
  2. Zeit Now
  3. Hasura GraphQL endpoint
  4. Heroku PostgreSQL
  5. Auth0

Getting started

  1. Checkout this repository and navigate to the project root folder

  2. Run npm i to install all necessary dependencies

  3. Create a .env.build file with the following environment properties

    • GRAPHQL_ENDPOINT=<the Hasura GraphQL endpoint>
    • HASURA_ADMIN_SECRET=<Hasura admin secret>
    • HASURA_ROLE=<Hasura role>
    • AUTH0_DOMAIN=<Auth0 domain>
    • AUTH0_CLIENT_ID=Auth0 client ID
  4. Run now dev to build and run the web app locally

    • navigate to localhost:3000

Passing canonical urls

You can pass a canonical url by passing the canonical URL-parameter like so:

  • localhost:3000?canonical=http://willemliu.nl

When you pass a canonical URL then your comments will be attached to that specific URL.

Circles

You can administer your circles by navigating to:

  • localhost:3000/circles

Admin

You can administer all your own comments by navigating to:

  • localhost:3000/admin

ERD

ERD