Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 886 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 886 Bytes

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