mrserverless / serverless-golang

AWS Lambda Go functions using Serverless Framework and Python shim
Other
302 stars 21 forks source link

local server #12

Closed LutherDiaz closed 7 years ago

LutherDiaz commented 7 years ago

What is the recommended way of starting a local web server? Thank you!

mrserverless commented 7 years ago

@LutherDiaz with Function As A Service the idea is not to start up a webserver, but to write a single function that does just one thing. And serverless framework then aggregates the various functions together to form a holistic service.

You can do unit testing by running make test. Then you simply deploy to AWS using make deploy. The first 1 million Lambda requests are free, so you can use that as a "web server" for integration testing purposes.