mirror of
https://iceshrimp.dev/blueb/Chuckya-fe-standalone.git
synced 2026-01-11 13:33:21 -08:00
add basic frontend server
This commit is contained in:
parent
911833f860
commit
8d62c3de12
1 changed files with 11 additions and 0 deletions
11
frontend-server/server.mjs
Normal file
11
frontend-server/server.mjs
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
import express from "express";
|
||||||
|
|
||||||
|
const app = express();
|
||||||
|
const port = 3132;
|
||||||
|
|
||||||
|
app.use(express.static("../public"));
|
||||||
|
app.use('*', express.static("../public"));
|
||||||
|
|
||||||
|
app.listen(port, () => {
|
||||||
|
console.log(`frontend server listening on port ${port}`);
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue