Skip to content

Instantly share code, notes, and snippets.

View rosemdev's full-sized avatar
🧵
unravelling

Romanna Shevchenko rosemdev

🧵
unravelling
View GitHub Profile
@sylvaindethier
sylvaindethier / server.js
Created June 26, 2017 09:36
NodeJS Express server for SPA
// Express
const express = require('express');
const bodyParser = require('body-parser');
const path = require('path');
const PORT = 9000;
const STATIC = path.resolve(__dirname, 'dist');
const INDEX = path.resolve(STATIC, 'index.html');