Slade 360 Advantage is a web application built with Angular v20, designed to streamline healthcare provider workflows in hospitals, clinics, and other medical facilities. It enhances the patient experience by managing the entire journey from check-in to post-visit engagement.
Client
To get a local copy up and running, follow these steps below. This assumes your team lead has given you access to the repository.
It is recommended to run the application in a linux environment. In order to run this project you need to install the following dependencies. You can use the apt package manager.
- Refresh your local package index first before installing any new dependency.
sudo apt updatesudo apt install nodejswget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" --no-use
nvm install 20.12.2
-
Run
nvm lsto see what version of nodejs you are running before proceeding.If you are not on
20.12.2, runnvm use 20.12.2
export PATH="$(npm bin):$PATH"
npm run docs:serve
This will serve the documentation on your localhost: http://localhost:9021/
npm run docs:coverage
npx husky install
sudo apt update
npm install -g @angular/cli-
Open a terminal and run:
sudo apt update sudo apt install gitAfter installation, set up your name and email (used for commits):
git config --global user.name "Your Name" git config --global user.email "your-email@example.com"
In your local linux environement set up ssh Step 1: Generate an SSH Key Pair, Open the terminal and run
ssh-keygen -t rsa -b 4096 -C "your-email@example.com"
Step 2: Choose a save location
The default path is ~/.ssh/id_rsa. Press Enter to accept or provide a custom path.
step 3: Manually copy the ssh key. Copy the contents from the output below
cat ~/.ssh/id_rsa.pub
step 4: Visit your GitHub account. Click the profile icon, then click preferences. Navigate to ssh keys and paste the contents you copied from step 3.
Clone this repository to your desired folder:
cd my-folder
git clone git@github.com:savannahghi/empower-frontend.gitInstall this project with:
cd my-folder/advantage-frontend
npm installFirst set up the environment variables. In the project root, create a folder env and a file test.sh. The contents for this file will be provided. Once the file(test.sh) is shared, run the following command
source env/test.sh
The above command is used to execute a script within the current shell environment. This command runs the script in the same shell session rather than spawning a new shell, which means any changes made to the environment (such as setting environment variables) will persist in the current session.
To run the project, execute the following command:
npm run start-clientTo run tests, run the following command:
npm run testThis can be after installing the packages and running export PATH="$(npm bin):$PATH"
npm run lint
npm run lint:styles
npm test
export PATH="$(npm bin):$PATH"
npx cucumber-js
Run the following command:
npm run prepush
