Skip to content

Instantly share code, notes, and snippets.

View robertcoopercode's full-sized avatar

Robert Cooper robertcoopercode

View GitHub Profile
function getMediumData(callback) {
let mediumData = {};
https.get( {
host: 'medium.com',
path: '/@jaltucher/latest',
headers: {
Accept: 'application/json'
}
}, (response) => {
let rawData = '';
app.get('/', (request, response) => {
response.sendFile(__dirname + '/index.html');
});
app.listen(8080, () => {
console.log("The application is running on localhost:8080!");
});
const express = require('express');
const https = require('https');
const app = express();
{
"name": "your-project-folder",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",