Code Monkey home page Code Monkey logo

meteo-vision's Introduction

Meteo Vision

Rails React npm License

CONTEXT

Meteo Vision is a full-stack application designed to retrieve and display historical weather data for any specified location and date range. This application utilizes a robust server-side architecture built with Ruby on Rails and a dynamic front-end interface developed using React.

SERVER SIDE

  1. Set up a Ruby project with a server-side framework like Ruby on Rails or Sinatra.
  2. Implement an API endpoint that receives parameters for location (example: Lisbon, Berlin) , start date, and end date.
  3. Create a weather service class that interacts with the Open-Meteo API. Make an HTTP requests to the API and retrieve historical weather information for the given location and date range.
  4. Define a data model for storing the historical weather information. The model should include attributes such as location, date, temperature, humidity, etc.
  5. Implement the API endpoint to fetch historical weather data for the specified location and date range. If the data was previously stored, return it directly; otherwise, fetch it from the Open-Meteo API.

FRONTEND

  1. Create a React App.
  2. Design a user interface with input fields for location (example: Lisbon), start date, and end date.
  3. Implement a client-side function that sends a request to the server API when a button is clicked, passing the entered location, start date, and end date as parameters.
  4. Handle the API response and display the historical weather information on the frontend with a chart library and on table format.

Demonstration Video

Meteo-Vision.Demo.mp4

How to run

To prepare your computer for development you need to install Docker Desktop.

Local Setup

Deploy Local Server

  1. Clone the repository
git clone https://github.com/FabioMiguel2000/Meteo-Vision.git
  1. Head inside the project directory /Meteo-Vision:
cd /Meteo-Vision
  1. There is a docker-compose file that builds and runs 2 containers, the Ruby on Rails server, and the React.JS client:
docker-compose up -d
  1. Run the Ruby on Rails server's migration:
docker exec -it server bin/rails db:migrate
  1. You should be able to run the application on:
http://localhost:3000/

License

This project is licensed under the Apache License, Version 2.0.

For the complete text of the Apache License, please refer to the Apache License.

meteo-vision's People

Contributors

fabiomiguel2000 avatar

Watchers

 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.