3
3
* A minimalistic (as possible) startingpoint, following the official guides, and avoiding some pitfalls.
4
4
* It was important to me that all dependent packages are up to date.
5
5
* I didn't test the app for all possible and impossible scenarios, only for my very specific requirements.
6
+ * It ist my public playground, where i test out concepts and implementations for my apps.
6
7
7
8
Goals
8
9
@@ -33,6 +34,11 @@ If you also want to build an app with this setup, this could be a good starting
33
34
* Catalog-Module for local and remote pouchdb stores.
34
35
* local stores can be backuped to zip archives.
35
36
* switch between stores on the fly.
37
+ * User-Management and Login
38
+ * Provide a Login-form
39
+ * Provide User-Management / Users and Roles (add, remove)
40
+ * Encrypt and decrypt data to store them localy via Elecron-Conf
41
+ * persist current user, for automatic login.
36
42
37
43
## React Pitfalls
38
44
@@ -42,19 +48,23 @@ If you also want to build an app with this setup, this could be a good starting
42
48
43
49
Database. Settings and switch. This is an example for a ` List ` . The Name of the active catalog shows up in the Application-Title.
44
50
45
- ![ Screenshot Database Settings and Switch] ( readme-images/screenshot-001.png )
51
+ ![ login Screen] ( readme-images/screenshot-001.png )
52
+
53
+ Session stays open if you with so, so you will logged in automatically on next startup.
54
+
55
+ ![ Screenshot Database Settings and Switch] ( readme-images/screenshot-002.png )
46
56
47
57
IPC Ping-Pong. Note that the header buttons can also be hidden/deactivated.
48
58
49
- ![ Screenshot IPC Ping-Pong] ( readme-images/screenshot-002 .png )
59
+ ![ Screenshot IPC Ping-Pong] ( readme-images/screenshot-003 .png )
50
60
51
61
Example-Module User-` View ` . THis is a non-editable view of a single entry from the list.
52
62
53
- ![ Screenshot Example-Module User-View] ( readme-images/screenshot-003 .png )
63
+ ![ Screenshot Example-Module User-View] ( readme-images/screenshot-004 .png )
54
64
55
65
Example-Module User-` Form ` . A Formular, to create, or update Data:
56
66
57
- ![ Screenshot Example-Module User-Form] ( readme-images/screenshot-004 .png )
67
+ ![ Screenshot Example-Module User-Form] ( readme-images/screenshot-005 .png )
58
68
59
69
## Use the Repo
60
70
@@ -140,7 +150,7 @@ git init
140
150
# restore the backuped .gitignore
141
151
```
142
152
143
- run the commands:
153
+ ### run the commands
144
154
145
155
``` bash
146
156
# start the app
@@ -158,6 +168,11 @@ npm run make
158
168
* Inspect the code for further reference.
159
169
* Have fun and success with your project.
160
170
171
+ ## Login
172
+
173
+ Login with username = ` f_mueller ` and password ` f_mueller ` .
174
+ Example Users with different roles have username quals password.
175
+
161
176
## Update outdated packages
162
177
163
178
> [ !IMPORTANT]
@@ -425,6 +440,20 @@ npm install zip-a-folder
425
440
npm install dayjs
426
441
```
427
442
443
+ ### User Management and Login
444
+
445
+ * Encrypt and decrypt data to store them localy via Elecron-Conf
446
+ * Users and Roles
447
+
448
+ ### SVG Support
449
+
450
+ Display an SVG Image in this environment - used on the Login Page.
451
+
452
+ * ` npm install @svgr/webpack --save-dev `
453
+ * add to ` webpack.rules.ts `
454
+ * create ` custom.d.ts `
455
+ * add to ` tsconfig.json `
456
+
428
457
### Sign the App
429
458
430
459
pending
0 commit comments