/crappy-weather-web

Weather web page using Angular (TypeScript), Spring (Java), Openweather.

Primary LanguageTypeScript

About the Code

Frontend made with Angular and TypeScript, which communicates with the backend made with Java Spring. This backend communicates with the API: OpenWeather
It doesn't make to much sense to use Java Spring, since we could make the API calls from Angular, but I want to learn Java Spring so :/

How Does It Look Like

First Image
Second Image

Installation

  • You need an OpenWeather account and key: How to start
  • You need maven and angular

Run

  • Set an env variable called OPEN_WEATHER with yout weather key:
export OPEN_WEATHER=your_openweather_key
  • Then open a terminal and inside weather_backend run:
mvn spring-boot:run
  • Open another terminal and inside weather_frontend run:
npm install -g @angular/cli
npm i
ng serve --open
  • A web page should open inside your web browser :D