created general outline of website

This commit is contained in:
2024-07-28 22:08:11 +09:00
parent 18c331d486
commit 28c9720239
32 changed files with 3816 additions and 3 deletions

18
src-manager/index.js Normal file
View File

@@ -0,0 +1,18 @@
const express = require('express');
const sqlite3 = require('sqlite3');
const path = require('path');
const app = express();
const port = 3001;
//const db = new sqlite3.Database("../assets/databases/news.db");
app.use(express.static('pages'));
app.use(express.static(path.join(__dirname, "../assets")));
app.use(express.static(path.join(__dirname, "../public")));
app.get('/api/hello', (req, res) => {
res.send('Hello World!');
});
app.listen(port, () => {
console.log(`Manager is now listening on port ${port}`);
});