awsmobile-cli icon indicating copy to clipboard operation
awsmobile-cli copied to clipboard

Parallel development for backend

Open thelinuxkid opened this issue 7 years ago • 2 comments
trafficstars

This is related to another issue I just posted. Because I haven't been able to test the backend locally, it's difficult for two developers to collaborate on the same backend -- one developer's changes override the other's when both do an awsmobile push. It's similar to working with git but on a single branch. What are the best practices in this case?

thelinuxkid avatar May 23 '18 21:05 thelinuxkid

I would suggest to keep two environments, one for dev and test, and one for production. The dev and test environment is expected to be unstable. And before you push, do a pull and compare the code in #current-backend-info folder with your local development in the backend folder, because your coworker might have changed the cloud. Then when everything is tested fine, update the backend folder of the project that's linked to the production environment, and do a push.

UnleashedMind avatar May 23 '18 23:05 UnleashedMind

Is there a tutorial which explains this workflow? Right now we're doing local development on the production database, as the aws-exports gives us the prod data.

dan1elhughes avatar Jun 12 '18 13:06 dan1elhughes