Code Monkey home page Code Monkey logo

aws_api_gateway_jwt_local's Introduction

This is a development tool that allows for you to send requests through an AWS API Gateway to your locally running app. Authentication occurs using jwt openid auth, also running an openid server locally.

This assumes to be running in a subfolder of another project. The host project is assumed to use docker compose, and the name of your main app's service is assumed to be my-app (not a perfect drop-in for any project, I'll admit). Your app's main service and this add-on use an external network named my_app.

Getting Started

Install ngrok and create free account. Store the api key in the .env.ngrok file:

cp .env.ngrok.example .env.ngrok

Follow the instructions for setting up your environment for terraform in ./infra

To run the app and manage the infrastucture, run:

make

Then you can generate a jwt for authentication with the API Gateway:

make jwt

Use this in the header Authorization: Bearer TOKEN Tip: you can use jwt.io to inspect tokens

To just run the app:

make app

Or if you just need to apply the infrastructure configuration:

make apply_infra

To teardown the local app but not the cloud infrastructure:

make teardown_app

To teardown the cloud infrastructure:

make teardown_infra

aws_api_gateway_jwt_local's People

Contributors

drewmoore 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.