Skip to content
Permalink
Browse files

add expressjs and create a server for static content

  • Loading branch information...
acodeninja committed Apr 11, 2019
1 parent 6ec02c1 commit 45db1cecd532bba49f04e9b903e83a94ade8dca0
Showing with 15 additions and 3 deletions.
  1. +1 −0 package.json
  2. +11 −0 server.js
  3. +3 −3 yarn.lock
@@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"express": "^4.16.4",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "2.1.8"
@@ -0,0 +1,11 @@
const express = require('express');

const app = express();

app.use(express.static('build'));

app.listen(
process.env.PORT,
() => console.log(`listening on port ${process.env.PORT}`)
);

@@ -3645,7 +3645,7 @@ expect@^23.6.0:
jest-message-util "^23.4.0"
jest-regex-util "^23.3.0"

express@^4.16.2:
express@^4.16.2, express@^4.16.4:
version "4.16.4"
resolved "https://registry.yarnpkg.com/express/-/express-4.16.4.tgz#fddef61926109e24c515ea97fd2f1bdbf62df12e"
integrity sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==
@@ -7925,7 +7925,7 @@ react-dev-utils@^8.0.0:
strip-ansi "5.0.0"
text-table "0.2.0"

react-dom@16.8.6:
react-dom@^16.8.6:
version "16.8.6"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.6.tgz#71d6303f631e8b0097f56165ef608f051ff6e10f"
integrity sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA==
@@ -7999,7 +7999,7 @@ react-scripts@2.1.8:
optionalDependencies:
fsevents "1.2.4"

react@16.8.6:
react@^16.8.6:
version "16.8.6"
resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe"
integrity sha512-pC0uMkhLaHm11ZSJULfOBqV4tIZkx87ZLvbbQYunNixAAvjnC+snJCg0XQXn9VIsttVsbZP/H/ewzgsd5fxKXw==

0 comments on commit 45db1ce

Please sign in to comment.
You can’t perform that action at this time.