jloborod / ts-redux-saga-weather-app

Simple Weather App using React, Typescript and Redux Saga :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Known Vulnerabilities

React Weather App

This project was bootstrapped with Create React App and uses Typescript and Redux Saga.

The project structure is based on this starter project from Microsoft.

It uses Open Weather api so, it needs a valid api key to be provided in a .env file at the root folder with the following format:

REACT_APP_API_KEY=your_api_key_here

Ideally, as an improvement, that api key should not be visible by using a proxy.

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 the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.

npm test:verbose

In case you want to see more info about your tests.

npm test:coverage

Creates a coverage report from your tests in coverage folder.

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.

About

Simple Weather App using React, Typescript and Redux Saga :)


Languages

Language:TypeScript 57.6%Language:JavaScript 23.8%Language:CSS 13.4%Language:HTML 5.2%