Coder Social home page Coder Social logo

adaptavist-assignment's Introduction

Adaptavist Take Home Assignment

Technology Stack

The technology stack I chose to use was TypeScript, AWS CDK, and AWS Lambda. The reason for using this tech stack was because it is what Adaptavist uses and I was curious to see how AWS CDK works. I had a great time using AWS CDK as I was impressed by how fast I could get my code deployed into the cloud. I do wish that I implemented a lambda layer so that I can lower the file size of the lambda.

How to build and run

You don't need to initialize the backend in order to use the Slack Application. You can just configure the Slack Application to point to the already deployed backend. If you wish to go down this route, skip the Backend Initialization guide and only do the Slack Application Initialization Guide.

Backend Initialization Guide

In this guide I am assuming that you have the AWS CLI installed and tht you have credentials to provision infrastructure.

  1. In the terminal, run git clone GIT_REPO_URL to clone this repository
  2. In the terminal, run npm run build
  3. In the terminal, run cdk synth to initialize a stack
  4. Make sure to have bootrapped your CDK environment. If you haven't you can follow the guide
  5. In the terminal, run cdk deploy to deploy the infrastructure to AWS
  6. On success, there should be a deployed API Gateway and Lambda.

Slack Application Guide

  1. Create a Slack Application
  2. Add a Slash Command that sends a POST request to the API Gateway that was configured in the backend initialization guide. You can find this using the AWS Console or AWS CLI. However, if you did not complete this guide then please use this URL: https://on9inavid4.execute-api.us-east-2.amazonaws.com/prod
  3. Install the App in your workspace
  4. Use the slash command that you configured with the Slack Application, you can enter it to get a Chuck Norris joke

“”

5. When you press enter and send the command, there should be a Chuck Norris Joke as an output

“”

adaptavist-assignment's People

Contributors

peken97 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.