Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 2.22 KB

README.md

File metadata and controls

55 lines (40 loc) · 2.22 KB

Misinformation Mitigation Project

Frontend

This is a Next.js frontend for the Misinoformation Mitigation project. To learn more about Next.js, take a look at the following resources:

Quick Start

Assuming npm is already installed, the project set up is quick and easy.

  1. Clone the repo
git clone https://github.com/ComplexData-MILA/veracity-eval-frontend.git
cd veracity-eval-frontend
  1. Create a .env file in the root directory and add the necessary environment variables. Use a .env.local for local development:
AUTH0_SECRET=${auth0SecretHere}
AUTH0_BASE_URL='https://veri-fact.ai/' or 'localhost:3000/'
AUTH0_ISSUER_BASE_URL='https://veri-fact.ca.auth0.com/'
AUTH0_CLIENT_ID=${clientIdHere}
AUTH0_CLIENT_SECRET=${clientSecretHere}
AUTH0_AUDIENCE='https://veri-fact.ca.auth0.com/api/v2/'
AUTH0_SCOPE='openid profile email offline_access'
NEXT_PUBLIC_API_URL='https://api.veri-fact.ai'
  1. Install dependencies
npm install
  1. Run project
npm run dev

Project will now be running on localhost:3000/

Dependencies

The frontend of the project uses typescript and sass throughout. Style modules are a mix of components and page-level styling.

Internationalization is handled by next-intl and at the time of writing, we are increasing use of our charting dependency, chart.js. Like most nextjs projects, linting is handled by eslint.

Project Overview

For more details on the project that are not specific to the frontend, please refer to the Project Overview wiki page.

For details relating to the Next.js project specifically there is wiki page here

API Specification

For detailed API documentation, please refer to the API Specification wiki page, or to the Swagger Docs.