Skip to content

Commit 383ef85

Browse files
committed
modified: loadSecrets.js
modified: public/About.JPG modified: public/About.PNG modified: public/ExchangeRate.JPG modified: public/ExchangeRate.PNG deleted: public/Home.JPG deleted: public/Home.PNG modified: public/LoggedIn.JPG modified: public/LoggedIn.PNG modified: public/README.md modified: routes/currency-exchange-routes.js modified: routes/profile-routes.js modified: routes/weatherbit-routes.js modified: views/pages/about.ejs modified: views/pages/exchangeRate.ejs modified: views/pages/profile.ejs modified: views/pages/weatherbit.ejs modified: views/partials/footer.ejs modified: views/partials/head.ejs
1 parent 9623cab commit 383ef85

19 files changed

+158
-41
lines changed

loadSecrets.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import * as dotenv from 'dotenv';
1010

1111
// dev env
1212
dotenv.config();
13-
1413
let EXCHANGE_RATE_APIKEY;
1514
let WEATHERBIT_KEY;
1615
let GoogleclientID;
@@ -21,12 +20,12 @@ let EXCHANGE_RATE_URI='https://v6.exchangerate-api.com/v6/';
2120
let CookieKey = 'c93da061ab7f984267e36c8431645035d611bc892c58f0e64614c68a4384a179126e7ed0b5829e460f292f72e9ef4facb68a0894cb2425ba046b82a3bae0b529';
2221

2322
if (process.env.NODE_ENV === "production") {
24-
EXCHANGE_RATE_APIKEY = process.env.EXCHANGE_RATE_APIKEY;
25-
WEATHERBIT_KEY = process.env.WEATHERBIT_KEY;
26-
GoogleclientID = process.env.GOOGLECLIENT_ID;
27-
GoogleclientSecret = process.env.GOOGLECLIENT_SECRET;
28-
MongoDBConString = process.env.MONGODB_URI;
29-
console.log('Loaded keys from dotenv');
23+
EXCHANGE_RATE_APIKEY = process.env.EXCHANGERATE_APIKEY;
24+
WEATHERBIT_KEY = process.env.WEATHERBIT_KEY;
25+
GoogleclientID = process.env.GOOGLECLIENT_ID;
26+
GoogleclientSecret = process.env.GOOGLECLIENT_SECRET;
27+
MongoDBConString = process.env.MONGODB_URI;
28+
console.log('Loaded keys from dotenv');
3029
} else {
3130
// dynamically importing keys.js using promise:
3231
let secrets = await getSecrets();

public/About.JPG

-64.3 KB
Loading

public/About.PNG

-34.7 KB
Loading

public/ExchangeRate.JPG

12.1 KB
Loading

public/ExchangeRate.PNG

9.52 KB
Loading

public/Home.JPG

-43.1 KB
Binary file not shown.

public/Home.PNG

-23.2 KB
Binary file not shown.

public/LoggedIn.JPG

10.6 KB
Loading

public/LoggedIn.PNG

11.3 KB
Loading

public/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
![](./ChapterSubject_WeatherAPI.PNG)
22

3+
4+
# Snapshots
5+
![Entry point](./Homepage.PNG)
6+
7+
8+
![User profile](./About.PNG)
9+
10+
![Sign in with Google](./SigninWithGoogle.PNG)
11+
12+
![Login](./LoggedIn.PNG)
13+
14+
![Currency exchange rate](./ExchangeRate.PNG)
15+
16+
... And more
17+
18+
319
# Core Logic
420

521
To obtain the pinpoint weather data non-interactively, earth location(GPS) is a required parameter. For this, the longitude and latitude would suffice programmatically. For the interactive option, input of a physical postal address (partial address of City, State, or Country) is required. Optionally, you could also register with the google map service (*additional charge will incur*). Then, a touch or click event on the google map will yield the latitide and longitude among other values.

0 commit comments

Comments
 (0)