How to run app in offline?
Lancer92 opened this issue · 3 comments
Hi @Lancer92! Your code instantly syncs to your personal development instance in the cloud, allowing you to develop/debug your application using a copy of the cloud infrastructure your production application runs on. This avoids the need to run the app offline so you don’t need to worry about local mocking which can cause fidelity issues.
Hi @jeremydaly !
My regards, this is awesome approach.
As I have noticed, serverless cloud uses a lot of best practices, so I decided to try it out.
But what about to following Clean architecture - and be able to run app by providing other api (express) and data (In Memory, Redis) as infrastructure? this will allows to have some fast tests. I need it mostly because now I faced some problems with Serverless Cloud.
- Long deployment - up to 20s. This may be due to syncing dev dependecies to a serverless cloud. Is it possible to avoid some npm's (mostly dev and its dependecies) from node_modules to be synced? This will also help to have bigger codebase & prod dependencies, as there are limit 128mb per service. (There was a similar stackoverflow question related to heroku 8y ago)
- Sometimes no debug logs and have
Internal Server Error
. #29
Hi @Lancer92! Thanks for the feedback and the questions. We just released an update to our syncing module that should get the syncing down to less than 1 second for most code changes. Larger files will be limited by connection speed. We're also aware of the /tmp/task
issue and have released a fix.
In terms of using Express, we are also about to launch "Bring your own framework (BYOF)" support that will allow you to use most HTTP frameworks like Express, Koa, Fastify, etc. We don't have Redis support yet, but Serverless Data is a very fast key/value datastore that is backed by DynamoDB without all the interface complexity.