Skip to content

Instantly share code, notes, and snippets.

View ChugunovRoman's full-sized avatar
💭
I may be slow to respond.

Roman ChugunovRoman

💭
I may be slow to respond.
  • LAD IT
  • Kazakhstan, Aktobe
View GitHub Profile
@ChugunovRoman
ChugunovRoman / server.mjs
Created June 21, 2018 12:04
Simple static server with Expressjs
import path from "path";
import Express from 'express';
const root = process.cwd();
const p = path.resolve(root, 'build');
const app = Express();
app.use(Express.static(p));
app.get('/', (req, res) => {