dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.19k stars 795 forks source link

Use “sls offline start” command to run fullstack app #1628

Open fedeiglesias opened 1 year ago

fedeiglesias commented 1 year ago

Hi there!

Thank you for this great plug-in for sls! Almost always I develop fullstack application. They usually have a small api and a frontend app built in React/Vue that I upload to an S3 Bucket using S3sync and make it public through Cloudfront. I would like to be able to use the "sls offline start" command to execute the development environment of both, the backend and the frontend part, but I couldnt find a solution until today. Currently I run the API with “sls offline start” and I run “npm run dev” in another console instance tu run the Frontend part.

Can someone give me a hint on how to solve this issue?

Thank you in advance!