Skip to content

NW6| Zeliha Pala| [TECH ED] JavaScript Challenges | Week-3#14

Open
zelihapala wants to merge 7 commits intoCodeYourFuture:masterfrom
zelihapala:javaScriptCore-3-Challenges
Open

NW6| Zeliha Pala| [TECH ED] JavaScript Challenges | Week-3#14
zelihapala wants to merge 7 commits intoCodeYourFuture:masterfrom
zelihapala:javaScriptCore-3-Challenges

Conversation

@zelihapala
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@musayuksel musayuksel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done @zelihapala !

Comment on lines +1 to +2
OpenWeather API Key: 6d0fbc92848b733471a1093b6ce30a2a
Unsplash Access Key: ZN0G43FIimsZIYP8Duic-99-R8mkuVHJUSr9mVtThJY
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick heads up – it's important NOT to commit API keys or any sensitive information directly into the codebase. You can use .env file for them. https://www.codementor.io/@parthibakumarmurugesan/what-is-env-how-to-set-up-and-run-a-env-file-in-node-1pnyxw9yxj

Comment on lines +177 to +178
font-size: 14px; /* Tüm form elemanlarının yazı boyutunu büyütür */
/* İhtiyacınıza göre diğer özellikler ekleyebilirsiniz */
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@@ -0,0 +1,93 @@
const openWeatherAPIKey = "6d0fbc92848b733471a1093b6ce30a2a";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here for API keys

Comment on lines +3 to +13
try {
const response = await fetch(
`https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${openWeatherAPIKey}`
);
const data = await response.json();
return data;
} catch (error) {
console.error("Weather data error:", error);
throw error;
}
};
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done, great usage of async await with try/catch

}
};

const unsplashAccessKey = "ZN0G43FIimsZIYP8Duic-99-R8mkuVHJUSr9mVtThJY";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants