This needs acidlabs-task-server running in order to work.
$ git clone https://github.com/mallendeo/acidlabs-task-client
$ cd acidlabs-task-client
$ yarn
$ yarn dev
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Set the REACT_APP_API_HOST
environment variable to your API:
$ REACT_APP_API_HOST="https://acidlabs-api-test.herokuapp.com/" yarn build
Builds the app for production to the build
folder.
It bundles React in production mode and optimizes the build for the best performance.
Login to Heroku:
$ heroku login
Create a new app, then add a git remote using:
APP_NAME=acidlabs-frontend-test
$ heroku create $APP_NAME
$ heroku git:remote -a $APP_NAME
Set the REACT_APP_API_HOST
variable:
$ heroku config:set REACT_APP_API_HOST="https://acidlabs-api-test.herokuapp.com/"
Finally, push the repo to Heroku's remote:
$ git push heroku master