14 lines
246 B
JavaScript
14 lines
246 B
JavaScript
|
|
const dotenv = require('dotenv');
|
||
|
|
const createApp = require('./app.js');
|
||
|
|
|
||
|
|
dotenv.config();
|
||
|
|
|
||
|
|
const app = createApp();
|
||
|
|
|
||
|
|
const PORT = process.env.PORT || 3000;
|
||
|
|
|
||
|
|
app.listen(PORT, () => {
|
||
|
|
console.log(`✅ Servidor rodando na porta ${PORT}`);
|
||
|
|
});
|
||
|
|
|