Skip to content

This project implements REST-API which is designed to be integrated with a slack-app.

Notifications You must be signed in to change notification settings

ArifaMujawar/weather-api-for-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather API for Slack

Table of contents

Introduction

  • This project implements REST-API which is designed to be integrated with a slack-app. Using this API, I have created a slack command (/weather city_name) using which users can see the weather details of the specified city.
  • Below is a snapshot of output
    • slack weather command

Technologies

  • The project has been implemented using Node.js, AWS lambda, API Gateway and Serverless framework.

Using this API in Slack

  • Create a slack app
  • In Basic Information page of your slack app, select Slack commands from Add features and functionality dropdown .
  • Click on Install App to Workspace button in the Install your app to your workspace dropdown.
  • Yaay!!, you are ready to use the command.

Deploying this API

  • Install and Configure the serverless framework with your AWS account.
  • Execute the following commands.
$ npm install
$ serverless deploy

Sources

  • The Project makes use of Dark Sky Api and Geocode API.
    • Geocode API is used to fetch latitude and longitude based on city name provided
    • Dark Sky API is used to fetch weather conditions based on latitude and longitude.

Tests

  • The unit tests are written using Jest testing framework.
  • To run tests
    npm test
    

About

This project implements REST-API which is designed to be integrated with a slack-app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published