Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add support to run standalone API server locally #53
Comments
|
@abmohan, this is a great idea. This might be possible with the |
|
Thanks, @jeremydaly. I was thinking of trying to wrap it in an express app for this purpose but opted to just go with If you do come up with an idea and would like some help putting it together, I'm happy to give it a shot! |
|
I can confirm that lambda-api works perfectly fine with serverless-offline. Note that serverless-offline just simulates AWS API Gateway, so it is framework agnostic. |
|
I can confirm that lambda-api works fine with AWS SAM CLI https://github.com/awslabs/aws-sam-cli |
|
In the spirit of keeping dependencies and external tools to a minimum, I solved this by splitting the route management into a separate module ( I've put my sample solution in a gist here: https://gist.github.com/Sleavely/f87448d2c1c13d467f3ea8fc7e864955 |
In my local env, throw a exception and not work :( You can help me? Thanks |
It looks like there is no |
Yes, i upload the test code to my github: https://github.com/jlopezcrd/lambda-api-test |
I've modified the local file and it works. You can review it: Regards. |
Interesting. I'm not sure why that approach works but I'm glad you got it running :) |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


sls invokeis useful for testing our API one request at a time.It would be nice to spin up a local version of the API on localhost to enable us to develop our frontend apps against it, and to more easily run integration and E2E tests.