This project is based on the Odin project: Weather App. I used Weather API to take and show weather information based on the location data taking from MapBox API. Also, the background image, which is provided by Pexels API, is changed randomly corresponding to the weather of the location you've searched.
Users can do actions like below in this application:
- Search the location they want to know the weather
- Get the current weather information including temperature and humidity
- Select the unit of temperature that users want to know
- Enjoy random image changed corresponding to the weather result
A list of commonly used resources that I find helpful is listed in the acknowledgments.
- About the Project
- Built With
- Live Demo
- Getting Started
- Author
- Contributing
- Show your support
- License
- Acknowledgements
To get a local copy up and running follow these simple example steps.
- On the project GitHub page, navigate to the main page of the repository.
- Under the repository name, locate and click on a green button named
Code
. - Copy the project URL as displayed.
- If you're running the Windows Operating System, open your command prompt. On Linux, Open your terminal.
- Change the current working directory to the location where you want the cloned directory to be made. Leave as it is if the current location is where you want the project to be.
- Type git clone, and then paste the URL you copied in Step 3.
e.g. $ git clone https://github.com/yourUsername/yourProjectName - Press Enter. Your local copy will be created.
- In the console, go to the place where you cloned this folder, and run
npm install
- Go to each API's website and create your free account to get token/key/id
- create .env file in the top level of the directory, and write your token/key/id like below:
MAPBOX_ACCESS_TOKEN=<YOURTOKENHERE>
WEATHER_APP_ID=<YOURTOKENHERE>
PEXELS_API_KEY=<YOURTOKENHERE>
- Run
npm run dev
, and the server will be opened, then click "dist" folder
👤 Yoko Saka
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Give a ⭐️ if you like this project!
This project is MIT licensed.