esubtelnik commited on
Commit
c9cff96
Β·
1 Parent(s): 0a536c9

Enable server listening on port 5000 and log server and Swagger documentation URLs

Browse files
Files changed (1) hide show
  1. src/server.ts +6 -6
src/server.ts CHANGED
@@ -38,10 +38,10 @@ app.use("/docs", swaggerUi.serve, swaggerUi.setup(swaggerDocument));
38
  app.use(notFoundHandler);
39
  app.use(errorHandler);
40
 
41
- // const PORT = 5000;
42
- // app.listen(PORT, () => {
43
- // console.log(`πŸš€ Server running at http://localhost:${PORT}`);
44
- // console.log(`πŸ“˜ Swagger docs available at http://localhost:${PORT}/docs`);
45
- // });
46
 
47
- module.exports = app;
 
38
  app.use(notFoundHandler);
39
  app.use(errorHandler);
40
 
41
+ const PORT = 5000;
42
+ app.listen(PORT, () => {
43
+ console.log(`πŸš€ Server running at http://localhost:${PORT}`);
44
+ console.log(`πŸ“˜ Swagger docs available at http://localhost:${PORT}/docs`);
45
+ });
46
 
47
+ // module.exports = app;