Created
February 24, 2020 20:45
-
-
Save Mcdavid95/abd9f74fd98cd4c5759e75a36c083396 to your computer and use it in GitHub Desktop.
SES RabbitMQ Tutorial
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 express = require('express'); | |
const { json, urlencoded } = express; | |
const app = express(); | |
app.use(json()); | |
app.use(urlencoded({ extended: true })); | |
app.get('/', (req, res) => { | |
return res.status(200).send({ | |
message: 'Welcome to our API' | |
}) | |
}); | |
app.listen(5000, () => { | |
console.log(`app running on port: 5000`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment