get react example working out of the box

This commit is contained in:
Eric Iffland 2017-03-20 18:52:39 -07:00
parent e7c89345a9
commit c59c857ecb
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@
These are the react examples for gun. They are separate from the other examples, because they require a lot of additional npm modules.
To run these modules, change to this directory, and run `npm install` and then `npm start` to start the server. Then navigate to `localhost:3000` to view the examples.
To run these modules, change to this directory, and run `npm install` and then `npm start` to start the server. Then navigate to `localhost:4000` to view the examples.
![examples](https://i.imgur.com/ZXOHWNN.gif)

View File

@ -4,11 +4,10 @@ import webpack from 'webpack'
import WebpackDevMiddleware from 'webpack-dev-middleware'
import config from './webpack.config'
const app = express()
const gun = Gun()
gun.wsp(app)
Gun({web: app})
const compiler = webpack(config)