Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Öberg committed Aug 24, 2016
1 parent 536ca6f commit 9ce4ec5
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,31 @@

### Installation
```
# Make sure you've a somewhat new Node version
# Clone
# cd into /react
# 1. Make sure you've a somewhat new Node version
# 2. clone this repo
# 3. cd into /react
npm install
```

### Development mode
In Dev mode, Hot Module Replacement is active, when you update the source file the changes are instantaneously shown in the web browser.
### Build the portlet
Build webpack and then the portlet itself to generate a .war file

```
npm start
# open web browser to localhost:3000
# cd into /react
npm run build
# war file will be in /portlet/target
```

### Build the portlet
Build webpack and then the portlet itself to generate a .war file
### Development mode
In Dev mode, Hot Module Replacement is active, when you update the source file the changes are instantaneously shown in the web browser.

```
npm run build
npm start
# open web browser to localhost:3000
```

### Gotchas
When building, the directory `portlet/src/main/webapp/static` is cleaned from all files named `gen.*` or `bundle.*`.
When building, the directory `portlet/src/main/webapp/static` is cleaned from all files named `bundle.*` and the subdirectory `static` is completely cleaned.

## The Portlet

Expand Down Expand Up @@ -104,3 +106,8 @@ Currently, when using React router it will log an error in the developer console
to the console log filter:

![Screenshot of Chrome Dev Tools](https://cloud.githubusercontent.com/assets/992008/17159866/8a4b36e0-5355-11e6-8a51-35f581d4d606.png)


## Other

The [kitten is under CC0 license](https://www.pexels.com/photo/grey-fur-kitten-127028/).

0 comments on commit 9ce4ec5

Please sign in to comment.