cuba-platform / frontend

Monorepo for CUBA Platform Frontend Tools and Libraries
Apache License 2.0
24 stars 12 forks source link

Improve react native example component #231

Open IskandarovRost opened 4 years ago

IskandarovRost commented 4 years ago

3.0.0-beta.1 see: https://doc.cuba-platform.com/frontend/cuba-frontend-docs/v3.0.x/client-react-native/starter-guide.html

1) Create some project on platform 7.2 2) It is required to add REST API app component image.png 3) Generate react native client gen-cuba-front react-native:app --model /home/rost/StudioProjects/testrn/projectModel.json -d ./rnclient 4) npm install 5) expo start -web

Then: 6) Login to middelware 7) Create security role with the Rest- scope 8) enable Rest access in this role (Specific permission) image.png 9) and add this role to user

10) then login to frontend by this user

AR: endless progressbar. Our user has no rights to read users by default. It seems, the list of all users is not great for the example, as the user should have extra permissions to read the User entity via REST. It looks like something what is extremely unsecure. image.png

ER: Some CUBA-styled user greetings page probabbly with the user settings (change password).

web-devel commented 4 years ago

Agree, see cuba-platform/restapi/issues/105 and cuba-platform/frontend/issues/233 . Users were picked only to demonstrate data loading (as built-in entities which definitely exist).