It is built on Rust and requires cargo Rust package manager to build.
Install cargo following the instructions at https://doc.rust-lang.org/cargo/getting-started/installation.html.
Open your terminal and navigate to a folder of your choice Eg: ~/Documents. Clone the repo using :
git clone "https://github.com/dak-x/weatherapp"
Generate an api key at https://openweathermap.org/api and paste it into the token.txt file in the root directory.
Build the bin by running :
./build.sh
Alternatively you can append the following code in src/lib.rs :
const APP_ID: &str = "<Token Key generated>"
and then run from your terminal
cargo build --release
You will find the bin file at target/release/weather. Explore the app via the following command. Copy this binary to your /bin folder to call it direcly from your shell.
target/release/weather --help
Feel free to contribute !!