MrHertal/react-admin-amplify-demo

Split system between admin and customer system?

BruceWheaton opened this issue · 3 comments

The docs note that the repo can be separate from the AWS resources. Is that just a matter of including files from a different folder? So the admin repo would not have any amplify backend?

Thanks for sharing this work!

Bruce

Hi,

Yes it means that you can have any project that holds the Amplify resources (project with the amplify folder) and use this library in a separate repository. All you need to have to initialize react-admin are the queries and mutations + the aws-exports file.

Thanks - that's what I hoped: but what's the mechanism? Copy the files from the other project? Can it co-exist with an amplify project (for instance to use hosting) in the admin app?

You need to copy the queries, mutations and the aws-exports file from the other project.
These are the files required in order to init AmplifyAdmin

Yes it can co-exist with an Amplify folder in the admin app.