Code Monkey home page Code Monkey logo

kimanicharles911 / weather_citywatch Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 1.15 MB

#Capstone-Project | An application that provides weather data of the city/town a user enters. It uses a weather API. It is developed using Reactjs, deployed here ๐Ÿ‘‰ https://weathercitywatch.netlify.app . It has tests done using jest and the react-testing library.

Home Page: https://weathercitywatch.netlify.app/

License: MIT License

HTML 13.36% JavaScript 84.36% CSS 2.28%
react bootstrap api weather openweathermapapi react-testing-library jest react-testing-lib capstone-project

weather_citywatch's Introduction

Weather CityWatch (Reactjs, Bootstrap, Jest, react-testing-library)

Description

  • This is the repository that holds the source code of Weather CityWatch. It has been developed using Reactjs and bootstrap.

Deployed at

Setup/Installation Requirements

Install Dependencies
npm install
Run React Development Server
npm run start
To Build for Production
npm run build
Know how to host at heroku.com - https://dev.to/destrodevshow/how-to-deploy-react-app-to-heroku-in-5-minutes-3dni

โš ๏ธ To deploy to heroku consider moving package-lock.json outside the project folder then you can perform this commands: git add . && git commit -m"deploy to heroku" && git push heroku master
โš ๏ธ Then after the application has been published and the hosting link works RETURN THE package-lock.json to the project folder.
โš ๏ธ Source: https://github.com/bazelbuild/rules_nodejs/issues/2452

Testing

npm run test
Unit Tests
src/
  components/
    __tests__/
      Async.test.js
Snapshot Tests
src/
  __tests__/
    ResultsCardComponent.test.js
    FormInputComponent.test.js

How It Was Built

Create React App
npx create-react-app
npm i --save bootstrap
npm i react-test-renderer
npm i --save-dev enzyme
npm i --save-dev @wojtekmaj/enzyme-adapter-react-17
npm i --save-dev jest-fetch-mock
Dependencies
  • Bootstrap
  • Enzyme
  • Enzyme Adapter React 17
  • React Test renderer
  • Jest Fetch Mock

src folder structure

src/
  components/
    FormInputComponent.jsx     
    ResultsCardComponent.jsx
    InstructionsComponent.jsx  
    WelcomeMessageComponent.jsx
    ResultsCardComponent.css
  __tests__/
    Async.test.js
    ResultsCardComponent.test.js
    FormInputComponent.test.js
    __snapshots__/
      FormInputComponent.test.js.snap
      ResultsCardComponent.test.js.snap
  App.css
  index.css
  logo.svg 
  setupTests.js
  App.jsx
  index.js 
  reportWebVitals.js

License and Copyright Information.

See my MIT LICENSE for details.

weather_citywatch's People

Contributors

kimanicharles911 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

seraajdv

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.