Skip to content

gShrike/definitions-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Definitions Client

A reusable client for Definitions API

Built on create-react-app

Setup

Clone down the repo locally and run npm or yarn install commands

npm install
yarn

Create a .env.local file and fill in the REACT_APP_API_URL with the url to your local Definitions API.

REACT_APP_API_URL=http://localhost:3001

If you would like to connect to a production database, you can create a .env.production file with the same variables but different domain

Development

To start development, run the npm or yarn start command

npm start
yarn start

Login is required through Github. To create a Github token for yourself, follow these steps:

  1. Login to https://dev-terms.firebaseapp.com/ with your Github account
  2. In Chrome Dev Tools, go to the Application tab and find the Cookie named gToken, copy this value
  3. On your local site running at http://localhost:3000, open Chrome Dev Tools, go to the Application tab and create or update the Cookie named gToken with the copied value

For write access, you must be logged in through Github.