Last active
April 3, 2017 08:52
-
-
Save mattiaerre/32cb87c726c7ecaa79f2a88b04508979 to your computer and use it in GitHub Desktop.
Revisions
-
mattiaerre revised this gist
Dec 11, 2016 . No changes.There are no files selected for viewing
-
mattiaerre revised this gist
Dec 11, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ /* info: the original "start" from CRA has been renamed to dev and a new "start" that points to server.js has been added */ { "scripts": { "start": "node server.js", "dev": "react-scripts start", -
mattiaerre created this gist
Dec 11, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ { // info: the original "start" from CRA has been renamed to dev and a new "start" that points to server.js has been added "scripts": { "start": "node server.js", "dev": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ /* * author: Mattia Richetto * twitter: @mattiaerre * email: [email protected] * date: 12/10/2016 */ const express = require('express'); const app = express(); app.use(express.static('build')); const port = process.env.PORT || 3000; app.listen(port);