generated from lucien/api-template
add: improved the frontend and the backend by adding websockets
This commit is contained in:
parent
ecf7b61aca
commit
fbf7821320
18 changed files with 255 additions and 65 deletions
|
@ -7,6 +7,7 @@ const cors = require("cors");
|
|||
require("dotenv").config();
|
||||
|
||||
const app = express();
|
||||
var expressWs = require('express-ws')(app);
|
||||
const port = config.port || 3000;
|
||||
|
||||
app.use(express.json());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue