Code Monkey home page Code Monkey logo

react-weather-app's Introduction

React weather app

This is one of the first applications I wrote to practice downloading data from the API, displaying it and error handling. The application allows you to search for weather in any city in the world. After searching for a city, you can add it to your favorites, which will appear above the input field.

The application is not finished, but it allowed me to practice some skills.

Unfortunately, I prepared the website only in Polish language.

There is no demo link for this project.

Used technologies:

  • create-react-app
  • webpack
  • Normalize.css
  • Styled Components
  • JSX
  • JS ES6+
  • React

External sources

Basic view

Basic view

Searching city

Searching city

Adding city to favorites

Adding a city to your favorites. The city search is case-sensitive.

Adding city to favorites

Error page

Error page

Getting Started

To run this project locally, follow these steps:

  1. Clone the repository to your local machine using the following command:
git clone https://github.com/carterstorm/react-weather-app.git
  1. Navigate to the project directory:
cd react-weather-app
  1. Install the project dependencies using npm or yarn:
npm install

or

yarn install
  1. Start the development server:
npm start

or

yarn start
  1. Open your browser and visit http://localhost:3000 to view the website.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

react-weather-app's People

Contributors

carterstorm avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.