Coder Social home page Coder Social logo

calendar-challenge's Introduction

Calendar Project

This project is a web app that displays the calendar of December/20 and allows the user to register events on each day of the month.

If the event is until 7 days after the current day, the web app gets the weather forecast and add this data to the event.

Click here to see the result.

Tech Stack

  • Next.js: Web app development, hosting and deployment
  • Bootstrap: CSS classes
  • Reactstrap: Pre-built components
  • Google Geocode API: Gets latitude and longitude from the name of the city
  • OpenWeather API: Get the wheather forecast from a place from the latitude and longitude
  • Cypress: Tests

Run Locally

  1. Download this repo
  2. Run npm install (to install all dependecies)
  3. Run npm run dev to open locally
  4. Run npx cypress open to run tests

Notes

  1. The API Keys are display in the getWhatherForecast function (inside NewEventFormSubmitButton.js) because is a requirement of the challenge to provide working API keys, but the correct way to leave API Keys is to set them as environment variables.

  2. The catch block in the getWhatherForecast function (inside NewEventFormSubmitButton.js) is empty because in case of error happens in the Whether Forecast object, its data is not fulfilled and this case is predicted in the EventSummary component.

calendar-challenge's People

Contributors

pedromarianoalmeida 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.