Created
May 12, 2023 15:02
-
-
Save emezac/e49be85daa07336d16c26d82a5714d96 to your computer and use it in GitHub Desktop.
plink
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Minimum dependencies | |
| Here are the dependencies that I have installed at the moment in the VMware | |
| <img width="907" alt="image" src="https://user-images.githubusercontent.com/1863670/221222132-90944ba1-3c69-47cb-9450-1120232ba5c7.png"> | |
| ## Process and steps | |
| 1. You need to install a valid LTS node version using the `nvm` package manager, the instructions would look like this: | |
| <img width="689" alt="image" src="https://user-images.githubusercontent.com/1863670/221223228-f0374879-2953-488d-8903-a14874f1430d.png"> | |
| Then you need to install a valid `18.xx` version, I'm currently using `18.12.0`, so the commands might look like this: | |
| ``` | |
| nvm install 18.12.0 | |
| ``` | |
| And then make sure you are able to run the `node` application by running in your terminal | |
| ``` | |
| node | |
| ``` | |
| And being able to run some javascript code there. | |
| <img width="440" alt="image" src="https://user-images.githubusercontent.com/1863670/221224296-0e49cff0-47b1-4673-b24b-04f3431ae74b.png"> | |
| NOTE: If you see a problem with permissions, please restart the VMware machine. | |
| 2. Clone and cd to the `teleharmony repository` from the `Optum GitHub account`, it might look like this: | |
| ``` | |
| git clone https://github.com/optum-bh/gtp-teleharmony-portal.git | |
| cd gtp-teleharmony-portal | |
| ``` | |
| 3. As we haven't merged the node upgrade branch(as of February 24th, 2023), you need to checkout to that one with | |
| ``` | |
| git checkout feature/upgrade-node-18 | |
| ``` | |
| NOTE: We had some certificate troubles using `Yarn` so we decided to use npm temporarily. | |
| 4. Configure the remote registry to point to UHG remotes, for that you need to create a `.npmrc` file with the following content: | |
| > .npmrc | |
| ``` | |
| registry=https://repo1.uhc.com/artifactory/api/npm/npm-virtual | |
| ``` | |
| 5. Clean up any installed dependencies at the moment: | |
| ``` | |
| rm -rf node_modules | |
| rm package-lock.json | |
| ``` | |
| 6. Install dependencies: | |
| ``` | |
| npm install | |
| ``` | |
| NOTE: For the first install I got some errors so I run it a second time and I didn't see the same this second try, so you can do the same. | |
| 7. As we do not have the `th-connect` project running locally, we need to use a remote backend server, in this case, we are going to use the `th-connect` staging one, for this, we need to point to that URL, and we can create a new `.env` file with the following content. | |
| > .env | |
| ``` | |
| REACT_APP_API_URL='https://s-connect.teleharmony.com' | |
| ``` | |
| 8. Run the Teleharmony portal: | |
| ``` | |
| npm start | |
| ``` | |
| At this point, you should be able to see the application running in the browser | |
| 9. Now, we might need to log in and authenticate our user but if you click on the `login` button and you provide your user/password on the healthcare website, you will be redirected to the `teleharmony portal `staging app but not your local, so in order to fix this issue you can follow a separate Wiki page here | |
| https://github.com/1DocWay/teleharmony-portal/wiki/Mocking-SSO-on-the-healthcare-server-for-th-connect-within-Teleharmony-portal#how-to-skip-the-authentication-in-your-local-using-th-connect-staging-server | |
| At this point, you should be able to see the time entry section in your `VWmare` machine browser. | |
| <img width="895" alt="image" src="https://user-images.githubusercontent.com/1863670/221228056-17bd35d2-e426-4781-af1d-28b225a39cf6.png"> | |
| If that is not the case, please let us know. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment