Giter VIP home page Giter VIP logo

weather-app's Introduction

weather-app ๐ŸŒฅ

Indices ๐Ÿงญ

Description โ˜€

Weather app is a micro site developed for the charlie challenge, from Hurb.

The idea is that you can see the weather from any location, just typing it or allowing to show your current position.

Project setup โ˜‚

Dependencies

This project will need Docker or node!

Docker โ˜

Steps with docker

docker-compose build
docker-compose up

Compiles and hot-reloads for development ๐ŸŒง

Steps with node

npm install
npm run serve

Compiles and minifies for production โ„

docker-compose build

Commands ๐ŸŒช

Run your unit tests ๐ŸŒก

npm run test:unit

Lints and fixes files ๐ŸŒฉ

npm run lint

Setup the backend ๐ŸŒจ

In case you want to run the backend only

In express/ runs

npm install

then

npm run start

Endpoints ๐ŸŒซ

To get the image for today

http://localhost:3000/image

To get the name and coordinates from a location, provides a location name, or the coordinates

http://localhost:3000/geocode?location={{location_name}}

To get the weather from a location, provides a location name

http://localhost:3000/weather?location={{location_name}}

Final thoughts โ˜ƒ

The challenge proposes this UI:

exemplo

I make a feel changes in the UI, most for improve the UX, I use an UI plugin called Vuetify to focus more on the functionalities and less in the UI.

Some colors gain more contrast, and the icons are in a pattern used by google ( Material Design )

And it looks like this:

laptop layout

For the challenge, i made a express backend api to fetch the requested endpoints. This helps me allot to deal with the data in the project, and takes away the dependence of the app from third party apis.

Was a really exiting project! Simple, at first, but have some complexity when you look for the possibilities, the complexity goes on!

First time creating an express server, give some maintenance in the past, but never created one from scratch. Same thing for Docker! I already made some dockers to python project, but never for an Express, nor a Vue project. A wonderful experience!

Have a chance to take a look in tests with jest in Vue components, something I would like to know better... Could not resolve the warning from the UI plugin Vuetify, is nothing so critical, don't mess up with the tests, but is something that I could think to improve.

weather-app's People

Contributors

imperiali avatar

Stargazers

automator hurb 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.