@flarehr/apollo-personal-details-app 3.69.58 → 3.71.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/README.md +0 -82
package/package.json
CHANGED
package/README.md
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# Basic.Profile.UI.PersonalDetails
|
|
2
|
-
|
|
3
|
-
## Installation
|
|
4
|
-
|
|
5
|
-
To install the project's dependencies, run the following commands:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
dotnet tool restore
|
|
9
|
-
dotnet restore
|
|
10
|
-
npm install
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Development
|
|
14
|
-
|
|
15
|
-
### Configuring the backend
|
|
16
|
-
|
|
17
|
-
The settings file, `local.settings.json`, allows you to configure the backend URL that you would like the web app to point to.</br></br>
|
|
18
|
-
|
|
19
|
-
#### Local Development
|
|
20
|
-
Use the following example to point to the Basic.Profile Api if you are running it locally.
|
|
21
|
-
|
|
22
|
-
```json
|
|
23
|
-
{
|
|
24
|
-
"backendUrl": "http://localhost:7071",
|
|
25
|
-
"headers" : {
|
|
26
|
-
"X-PROFILE-ID": "{Put Profile Id here}"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
This points the web app to `http://localhost:7071` and injects the `X-PROFILE-ID` header into the HTTP request.
|
|
32
|
-
|
|
33
|
-
> NOTE: You must set a Profile ID to one you have created in your local database.
|
|
34
|
-
|
|
35
|
-
</br>
|
|
36
|
-
|
|
37
|
-
#### Using the AutoDev environment
|
|
38
|
-
If you want to run the UI locally but ghave it conect to the Basic.Profile API running in the AutoDev environment you can use the following example:
|
|
39
|
-
|
|
40
|
-
```json
|
|
41
|
-
{
|
|
42
|
-
"backendUrl": "https://autodev-partner.flarehr.com",
|
|
43
|
-
"headers": {
|
|
44
|
-
"Authorization": "Bearer eyJhbGciO..."
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
This points the web app to `https://autodev-partner.flarehr.com` and replaces the `Authorization` header in the HTTP request.
|
|
49
|
-
|
|
50
|
-
A common approach to obtaining the Bearer token is to use our testing tool [Acme Partner App](https://apollo-partner.web.app/#/dashboard/workflows), and use your web browser's dev tools to obtain the token.
|
|
51
|
-
|
|
52
|
-
The token is associated to a profile, so there is no need to add the `X-PROFILE-ID` header like you do for purely local development.</br></br>
|
|
53
|
-
|
|
54
|
-
#### Open Browser on Application Start
|
|
55
|
-
|
|
56
|
-
If you would like a browser to open and load the page when the app starts, you can add the `openBrowser` setting with a value of `true`. The absence of this value will default the value to false.
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"backendUrl": "http://localhost:7071",
|
|
61
|
-
"headers" : {
|
|
62
|
-
"X-PROFILE-ID": "{Put Profile Id here}"
|
|
63
|
-
},
|
|
64
|
-
"openBrowser": true
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Starting the Development Server
|
|
69
|
-
|
|
70
|
-
To start the development server, run the following commands:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
npm start
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## Build
|
|
77
|
-
|
|
78
|
-
To build the project, run the following commands:
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
npm run build
|
|
82
|
-
```
|