Readme update

This commit is contained in:
KGrzeg 2021-10-18 03:09:28 +02:00
parent f5380927fd
commit 89e2f52063
9 changed files with 60 additions and 148 deletions

View file

@ -1,2 +1,3 @@
secret = oIMzR4YvM9x9NoPrQfk4
secret = HVuwh1dmaFhg4q1fef7xI4D6UeV7ImGK6NTp7i9eH6qiyJ9kxsvqPu29JXnhNGQY
enableJusticeGuard = 1
PORT = 3001

5
server/README.md Normal file
View file

@ -0,0 +1,5 @@
# Start Game Server
For more info look at main README.md
I used [phaser3-typescript-parcel-template](https://github.com/ourcade/phaser3-typescript-parcel-template) as startup project (but typescript config was messed up)

View file

@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "nodemon --ignore ./storage/ --exec babel-node server.js"
"dedv": "nodemon --ignore ./storage/ --exec babel-node server.js",
"start": "babel-node server.js"
},
"type": "module",
"keywords": [],

View file

@ -110,4 +110,8 @@ app.use(function (err, req, res, next) {
});
await db.read()
app.listen(3000)
const port = process.env.PORT || 3000
app.listen(port, () => {
console.log(`Server listening on port ${port}!`);
})