99x / serverless-react-boilerplate

A serverless react boilerplate for offline development
MIT License
260 stars 75 forks source link

3 package.json files #26

Closed rajikaimal closed 7 years ago

rajikaimal commented 7 years ago

Will it affect the structure of the boilerplate, if package.json files gets merged somehow ?

mjzone commented 7 years ago

@rajikaimal The intention of using separate package.json files, is to facilitate decoupled deployment of client and backend. For example if you want to deploy the client in heroku, you can easily do so by introducing 'npm start' for the client package.json file. Similarly the backend package.json carries the dependencies for the lambdas. However when it comes to development, we wouldn't want to run commands by navigating to each folder. Outer package.json is used to ease this process and leverage offline server and dynamodb local features.

rajikaimal commented 7 years ago

Got it !, closing this issue now 😃