All files / src server.js

83.33% Statements 5/6
100% Branches 2/2
100% Functions 2/2
83.33% Lines 5/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18        77x 77x   77x 77x 77x                
import initializations from "./configuration/index.js";
import app from "./app.js";
 
async function startServer() {
    try {
        await initializations();
 
        const PORT = +process.env.PORT || 7000;
        return app.listen(PORT, async () => {
            console.log("Server running on http://localhost:" + PORT);
        });
    } catch (error) {
        console.log('Unhandled Rejection:', error);
    }
 
}
 
export default startServer();