mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
get react example working out of the box
This commit is contained in:
parent
e7c89345a9
commit
c59c857ecb
@ -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.
|
||||
|
||||
|
||||

|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user