forked from numexai/cyberbeats
Numex yayın: server.js
This commit is contained in:
parent
f0dfdc8631
commit
b6063f4a10
18
server.js
Normal file
18
server.js
Normal file
|
|
@ -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}`);
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue
Block a user