Skip to content

Instantly share code, notes, and snippets.

@catalinpit
Last active Apr 26, 2021
Embed
What would you like to do?
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