Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Programmatic Serverless #350

Open
wants to merge 1 commit into
base: add-frigg-start-command-and-migrate-some-helpers
Choose a base branch
from

Commits on Oct 17, 2024

  1. Okay, this is the doozy. We are now adding a createInfrastructure fun…

    …ction that does a lot of things for us.
    
    1. Creates all of the default routers, integration, auth, user, entity
    2. Creates the serverless.yml definition programmatically based on configured integrations
    3. Adds a new router, queue, and queue worker for every integration by default
    4. Adds a websocket handler just because we can? Largely for demos but useful in a lot of other contexts too.
    5. Sets the stage for iterating
    
    TODO:
    [] Need to figure out if this works with a locally defined serverless.yml / whether we should support that
    [] Webpack was having a lot of issues due to it being referenced from a different scope/directory... really unclear how to resolve this, but probably critical due to build size
    [] Add some more override options to the serverless.yml definition based on the overall Frigg App definition provided
    [] Get the Frigg App definition handled at root instead of in the backend, so we can also run the frontend at the same time (if it exists)
    [] Tests, tests, and more tests needed
    [] This needs to be tested for build and deploy. Unclear if it does yet, though running sls offline usually indicates we're alright
    [] Check defaults and have different defaults for when someone wants KMS Key vs. env, when they want to use Secrets Manager, and probably a few others that are common/critical (like domain management and VPC stuff).
    [] More TODOs but those will become apparent when working through the tests and using the `frigg start` command
    [] add options to frigg-start?
    [] support for TS?
    seanspeaks committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    9bc9068 View commit details
    Browse the repository at this point in the history