Skip to content

Commit

Permalink
attemp at dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardreyes29 committed Sep 3, 2020
1 parent 5b8a817 commit 190403a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
package-lock.json
.env
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "WeatherApp",
"version": "1.0.0",
"description": "## AUTHOR",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/edwardreyes29/WeatherApp.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/edwardreyes29/WeatherApp/issues"
},
"homepage": "https://github.com/edwardreyes29/WeatherApp#readme",
"dependencies": {
"dotenv": "^8.2.0"
}
}
2 changes: 1 addition & 1 deletion scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ $('#dismiss').on('click', function () {
$('.overlay').removeClass('active');
});
/*######## Open Weather API ########*/

require('dotenv').config()
/* Current weather data */
const OW_API_KEY = "de36e36780976652d3e84a5502633fce";
const NUMBER_OF_DAYS = 5;
Expand Down

0 comments on commit 190403a

Please sign in to comment.