/breezometer

Primary LanguageJavaScript

breezometer - Air Quality React App

Getting Started

In order to run the app, we will need to set up some things. The next steps will get you a copy of the project up and running on your local machine.

Prerequisites

Clone this repo to your local computer with the following command:

git clone https://github.com/matteo95g/breezometer.git

Next, move to the new directory:

cd breezometer

Once in the directory, run the following command to install node.js libraries:

npm install

Running the app

Now, you are in conditions to run the app. Run the following command:

npm start

Go to your browser, and write: http://localhost:3000/ you will see the app running.

Usage of the app

In the app you will see a text input for typing in a location, ex: 'Paris, France'. The app will request breezometer API and display air quality info along with some color indicator. In case the API responds with an error, the app should display an appropriate message.

Running tests

To run tests, go to the root folder of the app. Once there, run the following command:

npm test

Follow the instructions on the screen to test the app.