From b6063f4a10c7456dbd3567b7ad9ced6fc7c79751 Mon Sep 17 00:00:00 2001 From: numex-admin Date: Wed, 9 Sep 2026 22:40:51 +0000 Subject: [PATCH] =?UTF-8?q?Numex=20yay=C4=B1n:=20server.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 server.js diff --git a/server.js b/server.js new file mode 100644 index 0000000..d0fd59a --- /dev/null +++ b/server.js @@ -0,0 +1,18 @@ +// Cyber Beats - Express statik sunucu +// Tüm sesler saf Web Audio API ile tarayıcıda sentezlenir (mp3/wav yok). +const express = require('express'); +const path = require('path'); + +const app = express(); +const PORT = process.env.PORT || 3000; + +// public/ klasörünü statik servis et +app.use(express.static(path.join(__dirname, 'public'))); + +app.get('/', (req, res) => { + res.sendFile(path.join(__dirname, 'public', 'index.html')); +}); + +app.listen(PORT, () => { + console.log(`Cyber Beats sunucusu çalışıyor: http://localhost:${PORT}`); +});