mirror of
https://github.com/PrismarineJS/prismarine-web-client.git
synced 2024-11-14 19:25:07 -05:00
fix server import
This commit is contained in:
parent
1962a878b0
commit
aa3785b345
2 changed files with 7 additions and 2 deletions
|
@ -9,6 +9,10 @@ A minecraft client running in a web page.
|
|||
It runs mineflayer in the browser which connects to a websocket minecraft server.
|
||||
It provides a simple websocket to tcp proxy as a backend to make it possible to connect to any minecraft server.
|
||||
|
||||
## Usage
|
||||
|
||||
`npm install -g prismarine-web-client` then run `prismarine-web-client` then open `http://localhost:8080` in your browser
|
||||
|
||||
## Features
|
||||
|
||||
* display blocks
|
||||
|
@ -20,7 +24,7 @@ It provides a simple websocket to tcp proxy as a backend to make it possible to
|
|||
* chat
|
||||
* block placing and breaking
|
||||
|
||||
## Run
|
||||
## Development
|
||||
|
||||
```js
|
||||
npm install
|
||||
|
|
|
@ -5,6 +5,7 @@ const netApi = require('net-browserify')
|
|||
const bodyParser = require('body-parser')
|
||||
const request = require('request')
|
||||
const compression = require('compression')
|
||||
const path = require('path')
|
||||
|
||||
// Create our app
|
||||
const app = express()
|
||||
|
@ -27,7 +28,7 @@ app.use(function (req, res, next) {
|
|||
|
||||
app.use(compression())
|
||||
app.use(netApi())
|
||||
app.use(express.static('./public'))
|
||||
app.use(express.static(path.join(__dirname, './public')))
|
||||
|
||||
app.use(bodyParser.json({ limit: '100kb' }))
|
||||
|
||||
|
|
Loading…
Reference in a new issue