# ICE CONSOLE

Version 2 of react frontend for ICE Console

## Getting started

If it is the first time using the repo, clone it, then run the following:

```
start-reactor.sh
```

This will fetch jars for reactor, build containers, add scripts, and start reactor locally.

Next run:

```
npm start
```

Which will start the front end.

If it is not the first time simply run the following:

```
npm run reactor:start && npm start
```

### Tools

- React [docs](https://reactjs.org/)
- MobX [docs](https://mobx.js.org/)
- Material UI [docs](https://material-ui.com/)

### Debugging

Instead of console.log statements, this project uses the debug library. Each file should have a defined debug string included. it should always start with 'ice:' proceeded by the file name:


```
var debug = require('debug')('ice:fileName'); 
```

*NOTE: The comment tells the linter to ignore it because if you do not have any debuggers in the file, it becomes an unused var*

To activate it in your browser, open dev tools and type the following string in the **browser**:

```sessionStorage.debug = 'ice:*'```

-------------

This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).

You can find the most recent version of this guide for Create React App [here](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md).
