mirror of
https://github.com/amark/gun.git
synced 2025-06-07 22:56:42 +00:00
Merge pull request #344 from eriteric/react-example-fix
get react example working out of the box
This commit is contained in:
commit
527489d835
@ -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.
|
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.
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
@ -4,11 +4,10 @@ import webpack from 'webpack'
|
|||||||
import WebpackDevMiddleware from 'webpack-dev-middleware'
|
import WebpackDevMiddleware from 'webpack-dev-middleware'
|
||||||
import config from './webpack.config'
|
import config from './webpack.config'
|
||||||
|
|
||||||
|
|
||||||
const app = express()
|
const app = express()
|
||||||
const gun = Gun()
|
const gun = Gun()
|
||||||
|
|
||||||
gun.wsp(app)
|
Gun({web: app})
|
||||||
|
|
||||||
const compiler = webpack(config)
|
const compiler = webpack(config)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user