ldabiralai / simulado

A simple nodejs http mockserver
MIT License
14 stars 17 forks source link

Add instructions to deploy to cloud functions #111

Open bdo opened 4 years ago

bdo commented 4 years ago

The current README does not explain how to deploy simulado to a serverless environment.

ldabiralai commented 4 years ago

How do you suggest this would work @bdo?

It's my understanding that each time a request is made to a serverless environment a new instance of the app is spun up, and at the moment mocks are stored in memory in simulado meaning that mocks couldn't be persisted across requests and nothing would ever mock. Hope this makes sense? 😅

bdo commented 4 years ago

You're right! I don't know what I was thinking 🤔 What about a Cloudformation template to one-click deploy to AWS?

ldabiralai commented 4 years ago

Do you have a link to some docs on how to do that @bdo? I had a look but couldn't spot anything allowing that (apart from Amplify which is only serverless)