Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 1009 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 1009 Bytes

Weather-Report

This is a Project that utilizes the AsyncAPI templates to generate code to know weather of a location.

Run the Program Locally

  1. Fork and clone the Repo.
  2. Run npm i command in the terminal.
  3. Go into the test/project/config.py file and Paste the Weather API KEY. You can get it from weatherapi.com
  4. Now delete the test/project/client.py file. It will be regenerated using generator.
  5. In the Terminal run command 'asyncapi generate fromTemplate ./test/fixtures/asyncapi.yml ./ -o test/project --force-write -p server=dev'.
  6. A client.py file will be formed in the test/project folder.
  7. Now run the command 'python test/project/cli.py' in the terminal
  8. You will get prompt to enter the location of which you want to know the weather details.
  9. After entering the location you will get the weather details.

Weather Report

For More information about the Templates and Generator go to https://www.asyncapi.com/docs/tools/generator/generator-template .