/forecast

A simple api to calculate the best surfing conditions between beaches based on wind directions, latitude and longitude

Primary LanguageJavaScriptMIT LicenseMIT

Beach Forecast

Code for the project developed in the classes given by Waldemar Neto - Dev Lab, where an api is developed to calculate the best surfing condition among several beaches.

The image below shows the final result of the application on the web server.

Example

Technologies used

  • Node.js
  • Typescript
  • Jest
  • MongoDb

Running the project

  • Clone the repository and browse to it
git clone https://github.com/Torr7s/beach-forecast-api.git

cd beach-forecast-api
  • Install the dependencies
cd api/ 

yarn
cd server/

yarn
  • Into api/, set the environment variables in the .env and config/ file

  • Run the following command to launch the client

cd api/

yarn start
  • Run the following commands to launch the web server
cd server/

yarn start