Skip to content

seambark/weather_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

135 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Weather Project

[์ฝ”๋”ฉ์•Œ๋ ค์ฃผ๋Š” ๋ˆ„๋‚˜ 18์กฐ ํŒ€ ํ”„๋กœ์ ํŠธ] ๋‚ ์”จ์™€ ์ถ•์ œ์˜ ์˜ท์žฅ : ์ข…ํ•ฉ ๋‚ ์”จ ์›น ์ž…๋‹ˆ๋‹ค.

API KEY

1.์ตœ์ƒ๋‹จ์— api_key.js ๋งŒ๋“ ๋‹ค. (๋‹ค๋ฅธ๊ณณ์— ๋งŒ๋“ค ๊ฒฝ์šฐ index.html์— ๊ฑธ๋ ค์žˆ๋Š” ๋งํฌ๊ฒฝ๋กœ๋ฅผ ๋ณ€๊ฒฝํ•ด ์ค€๋‹ค.)

2.ํ•ด๋‹น ํŒŒ์ผ์— ํ•˜๋‹จ์˜ ์ฝ”๋“œ๋ฅผ ๋ถ™์—ฌ๋„ฃ๊ณ , ์ž์‹ ์˜ API KEY ์ฝ”๋“œ๋ฅผ ๊ธฐ์ž…ํ•œ๋‹ค.

const config = {
	apikey: "API KEY๋ฅผ ๊ธฐ์ž…ํ•˜์„ธ์š”."
}

ํŒŒ์ผ ๊ฒฝ๋กœ

(/assets/img/file_route.jpg)

  • index.html (๋ฉ”์ธํŽ˜์ด์ง€)
  • api_key.js (.gitignore์— ์ ํ˜€์žˆ์–ด ๊นƒ์—๋Š” ์˜ฌ๋ผ๊ฐ€์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๊ฐ์ž ์ƒ์„ฑํ•ด์„œ ์ž‘์—…ํ•ด์ฃผ์„ธ์š”)
  • .gitignore (github ์˜ฌ๋ผ๊ฐ€๋ฉด ์•ˆ๋˜๋Š” ํŒŒ์ผ์„ ๊ธฐ์ž…ํ•ฉ๋‹ˆ๋‹ค.)
  • asset -> img (์ด๋ฏธ์ง€ png, jpg ๋“ฑ..)
  • asset -> js (js ๊ธฐ๋ŠฅํŒŒ์ผ)
  • asset -> style (css ์Šคํƒ€์ผ)
  • pages (๊ฐ์ž ์ž‘์—…ํ•˜๋Š” ๊ฒƒ๋“ค์„ ํŒŒ์ผ ์ƒ์„ฑํ•ด์„œ ์ž‘์—…)

์ฐธ๊ณ ๋‚ด์šฉ

์ ์šฉ API

OpenWeather OPI https://openweathermap.org/

About

weather_project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors