-
-
Save catalinpit/66ac502e813ec26e1c6c7d4b70e45259 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const app = require('fastify')({ | |
logger: true | |
}); | |
require('dotenv').config() | |
app.register(require('./src/routes/course')); | |
app.listen(process.env.PORT, (err, addr) => { | |
if (err) { | |
app.log.error(err); | |
process.exit(1); | |
} | |
app.log.info(`Your server is listening on port ${process.env.PORT} 🧨`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment