2022-06-22 00:30:11 +03:00
|
|
|
import "dotenv/config";
|
2022-07-09 11:35:44 +03:00
|
|
|
import logger from "./src/logger";
|
|
|
|
import app from "./src/app";
|
2022-06-29 23:19:50 +03:00
|
|
|
|
2022-06-22 00:30:11 +03:00
|
|
|
// start the Express server
|
|
|
|
app.listen(process.env.PORT, () => {
|
2022-07-06 15:59:38 +03:00
|
|
|
logger.info(`server started at port ${process.env.PORT}`);
|
2022-06-22 00:30:11 +03:00
|
|
|
});
|