fix server import

This commit is contained in:
Romain Beaumont 2021-02-27 22:35:59 +00:00
parent 1962a878b0
commit aa3785b345
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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' }))