Getting Started
This is how you create a new project with ec.admin.
#
1. Init react-app#
2. Start Dev ServerFor ec.sdk auth to work, prepend "HTTPS=true" to package.json#scripts.start:
now you can run npm start
.
#
3. CodeHere is a minimal setup for ec.admin:
Here, just add the models you want as a Resource.
Important: If a resource contains any references (entry / entries fields), you MUST add the referenced models too. To hide an untwanted model from the sidebar, just set list to undefined (or do not use entryCrud spread syntax and omit list prop).
#
4. Have funAfter saving, and logging in with your ec.account (stage), you should see the login screen.
You are now ready to customize the admin, using ec.admin as an adapter between ec.sdk and react-admin.
For inspiration, you should check out the demo folder or light.react-admin.