add tower builing game

This commit is contained in:
hamid zarghami
2025-12-09 10:48:48 +03:30
parent 8119203506
commit 53b9139506
79 changed files with 15363 additions and 3 deletions
+17
View File
@@ -0,0 +1,17 @@
const express = require('express')
const path = require('path')
const opn = require('opn')
const server = express()
const host = 'http://localhost:8082'
server.use('/assets', express.static(path.resolve(__dirname, './assets')))
server.use('/dist', express.static(path.resolve(__dirname, './dist')))
server.get('*', (req, res) => {
res.sendFile(path.resolve(__dirname, './index.html'));
})
server.listen(8082, () => {
console.log(`server started at ${host}`)
opn(host)
})