Init express

This commit is contained in:
Minz committed 2022-04-24 00:37:55 +02:00
1 parent 6526ab8fe7
commit df8b46c667
3 files changed
+14 -2

No files matched your search

+3 -1
View File
@@ -3,13 +3,15 @@ version: "3.7"
services:
server:
image: node:16.9.0-alpine
command: sh -c "npm install && node ."
command: sh -c "npm install && npx nodemon ."
restart: unless-stopped
depends_on:
- "mysql"
working_dir: /app
volumes:
- ./:/app
ports:
- "3030:3030"
mysql:
image: mysql:8.0
ports:
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "bullet-hell-server",
"version": "1.0.0",
"description": "Scoreboard server",
"main": "index.js",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
+10
View File
@@ -0,0 +1,10 @@
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello Game Jam!');
});
app.listen(3030, () => {
console.log('Server listening on port 3030!');
});