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

API Local Development #4

Open
michaelmerrill opened this issue Feb 15, 2022 · 1 comment
Open

API Local Development #4

michaelmerrill opened this issue Feb 15, 2022 · 1 comment

Comments

@michaelmerrill
Copy link

In reading the code, I didn't see a way to run the frontend and backend api locally. I see the frontend is defaulting to localhost:4000, but I'm wondering if there is a way develop the lambdas locally while building out the frontend and without deploying the backend stack?

@ansgarm
Copy link
Contributor

ansgarm commented Feb 16, 2022

Hi @michaelmerrill 👋
That's right, currently there is none.

While there probably are ways to make that work for AWS lambda (e.g. using localstack), it is close to impossible to properly simulate everything locally. Especially if we put other (non-AWS) cloud resources into the mix (e.g. Cloudflare Workers) which would require other means of simulating it locally.
This is why the experimental cdktf watch command exists. It aims to allow faster iterations when working with serverless.

However in regards to this example repo which only uses AWS resources:
localstack has docs of how to use Terraform to provision locally into localstack, which is something that would also work with the CDK for Terraform. Experimenting with this could yield results with low effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants