-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add client api key
- Loading branch information
Showing
7 changed files
with
60 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ | |
], | ||
"scripts": { | ||
"start": "node server.js", | ||
"postinstall": "webpack -p --config ./webpack.config.js", | ||
"build": "webpack -p --config ./webpack.config.js", | ||
"postinstall": "node ./replace-key.js", | ||
"test": "make test" | ||
}, | ||
"author": "Emanuele Antonelli <[email protected]> (http://emant.altervista.org/)", | ||
|
@@ -90,4 +91,4 @@ | |
"webpack-dev-middleware": "^1.6.1", | ||
"webpack-hot-middleware": "^2.10.0" | ||
} | ||
} | ||
} |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
|
||
var html = fs.readFileSync(path.join(__dirname, 'client', 'public', 'index.html'), 'utf-8') | ||
|
||
html.replace('---key---', process.env.GOOGLE_API_CLIENT_KEY); | ||
|
||
fs.writeFileSync(path.join(__dirname, 'client', 'public', 'index.html'), html); |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
DB_URI=mongodb://localhost:27017/options-inc | ||
DB_URI_TEST=mongodb://localhost:27017/options-inc | ||
PORT=8080 | ||
APP_URL=http://localhost:8080 | ||
SEED_DB=false | ||
NODE_ENV=development | ||
DISABLE_WEBPACK=false | ||
DISABLE_AUTH=false | ||
GOOGLE_API_SERVER_KEY=<google-api-server-key> | ||
GOOGLE_API_CLIENT_KEY=<google-api-client-key> |
This file contains 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 characters
This file contains 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 characters