Starting somewhere

parents
'use strict';
var express = require( 'express' );
var app = express();
// Only one route
app.get( '/', function( req, res ) {
res.send( 'Hello World!' );
} );
// Listen on some random, unused port
// App is meant to be fronted by nginx
app.listen( 5060, function() {
console.log( 'Listening on port 5060' );
} );
{
"name": "eth-landing-page",
"version": "0.1.0",
"description": "Retrieve latest posts from various sites using the WP REST API and display them on a landing page",
"author": "Erick Hitter <contact@ethitter.com>",
"license": "GPL-2.0+",
"main": "index.js",
"keywords": [
"landing page",
"wordpress",
"rest api"
],
"scripts": {
"start": "node index.js"
},
"dependencies": {
"express": "*"
},
"repository": {
"type": "git",
"url": "https://git.ethitter.com/open-source/eth-landing-page.git"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment