Skip to content

Instantly share code, notes, and snippets.

@cwizard2011

cwizard2011/index.js Secret

Last active May 8, 2021
Embed
What would you like to do?
Setup Express Server
const express = require('express');
require('dotenv').config();
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 AWS Kinesis Video Streaming API'
})
});
app.listen(3000, () => {
console.log(`app running on port: 3000`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment