mirror of
https://github.com/creativetimofficial/vue-material-kit.git
synced 2025-05-23 12:14:22 +08:00
run server
This commit is contained in:
parent
3d35dbd8a5
commit
8cc788ecce
@ -1,9 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
apps: [
|
|
||||||
{
|
|
||||||
name: "web",
|
|
||||||
script: "./node_modules/@vue/cli-service/bin/vue-cli-service.js",
|
|
||||||
args: "serve"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
16
webapp/index.js
Normal file
16
webapp/index.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
const path = require("path");
|
||||||
|
const express = require("express");
|
||||||
|
const app = express(); // create express app
|
||||||
|
|
||||||
|
// add middlewares
|
||||||
|
app.use(express.static(path.join(__dirname, ".", "dist")));
|
||||||
|
app.use(express.static("public"));
|
||||||
|
|
||||||
|
app.use((req, res, next) => {
|
||||||
|
res.sendFile(path.join(__dirname, ".", "dist", "index.html"));
|
||||||
|
});
|
||||||
|
|
||||||
|
// start express server on port 5000
|
||||||
|
app.listen(3000, () => {
|
||||||
|
console.log("server started on port 3000");
|
||||||
|
});
|
@ -13,6 +13,7 @@
|
|||||||
"@trevoreyre/autocomplete-vue": "^2.4.1",
|
"@trevoreyre/autocomplete-vue": "^2.4.1",
|
||||||
"axios": "^1.5.1",
|
"axios": "^1.5.1",
|
||||||
"bootstrap": "5.1.3",
|
"bootstrap": "5.1.3",
|
||||||
|
"express": "^4.18.2",
|
||||||
"fs-web": "^1.0.1",
|
"fs-web": "^1.0.1",
|
||||||
"pinia": "2.0.14",
|
"pinia": "2.0.14",
|
||||||
"prismjs": "1.28.0",
|
"prismjs": "1.28.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user