Skip to content

BridgesUNCC/cs-materials-react-webclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cs-materials-react-webclient

SETUP for React

Requirements

yarn

Install dependencies: yarn, react-scripts, typescript

$ npm install -g yarn 
$ npm install -g react-scripts
$ npm install -g typescript

Run the server

$ yarn run start

Optional environment variables

REACT_APP_API_URL=# URL used for api requests e.g. "https://cs-materials-api.herokuapp.com"
REACT_APP_SEARCHAPI_URL=# URL used for api requests e.g. "https://csmaterials-search.herokuapp.com"

Debian specific

In Debian, the apt package is call yarnpkg and the executable is also called yarnpkg. So you would run:

$ apt install yarnpkg
$ yarnpkg install
$ export REACT_APP_API_URL="https://cs-materials-api.herokuapp.com"
$ export REACT_APP_SEARCHAPI_URL="https://csmaterials-search.herokuapp.com"
$ yarnpkg start