You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
395 B
16 lines
395 B
const {
|
|
APP_PORT,
|
|
TCP_PORT,
|
|
TCP_SERVER_HOST,
|
|
} = require("./config/config.default");
|
|
|
|
const app = require("./app/");
|
|
const server = require("./tcp/server");
|
|
|
|
app.listen(APP_PORT, () => {
|
|
console.log(`app server is running on http://localhost:${APP_PORT}`);
|
|
});
|
|
|
|
server.listen(TCP_PORT, TCP_SERVER_HOST, () => {
|
|
console.log(`tcp server is running on http://localhost:${TCP_PORT}`);
|
|
});
|