A new version of the repository is available here PSMRI/HWC-UI
Health and Wellness Centre (HWC) is one of the comprehensive applications of AMRIT designed to capture details of 7 Service packages as per guidelines which should be available at Health and Wellness centre.
This microservice is built on Java, Spring boot framework and MySQL DB.
Download Visual Studio Code from the below link: https://code.visualstudio.com/download
Link for installation steps: https://www.educative.io/answers/how-to-install-visual-studio-code-on-windows-os
Download NVM form below link: https://github.com/coreybutler/nvm-windows/releases
Steps to download nvm and node: https://dev.to/skaytech/how-to-install-node-version-manager-nvm-for-windows-10-4nbi
Install Node.js using below command:
nvm install 8.9.0
Check Node.js version:
node --version
Check npm version:
npm --version
Using the below command to specify the version of npm that you wish to use. In our case, since we have only one version installed. Let's go with that.
nvm use 8.9.0
Angular CLI Installation
Angular CLI is a command line tool for Angular. You can install it globally using npm with the following command:
npm install -g @angular/cli@1.7.0
Python Installation [ If you face any Python related error during node_modules installation] Download Python 2.7.12 Download link: https://www.python.org/downloads/
Setup Environment Variables
Add below paths in “User Environment Variables -> Path “: C:\Python27 C:\Python27\Scripts C:\Users\myFolder\AppData\Local\Programs\Microsoft VS Code\bin C:\Users\ myFolder\AppData\Roaming\npm C:\Users\ myFolder\AppData\Roaming\npm\node_modules\@angular\cli\bin %NVM_HOME% %NVM_SYMLINK%
Add below paths in “System Environment Variables”: %NVM_HOME% - C:\Users\ myFolder \AppData\Roaming\nvm %NVM_SYMLINK% - C:\Program Files\nodejs
Add below paths in “System Environment Variables -> Path “: C:\Python27 %NVM_HOME% %NVM_SYMLINK% %AppData%\npm C:\Users\ myFolder\AppData\Roaming\npm
Note: After changing environment variables, please restart your system and check again.
git clone <repository-url>
Open hwc-facility-app project code in Visual Studio Code
Navigate to your project folder and execute below command for node_modules installation:
npm install
If you face any error related to ng2-smart-table, execute below command:
npm install ng2-smart-table@1.2.1
Copy environment configuration. cp src/environments/environment.ts src/environments/environment.local.ts
. Edit the endpoints, ports and IPs as per your local running services.
Once node module is installed successfully, then run the project using below command: ng serve
By default your application will be available at ‘http://localhost:4200/’. You can access it in your browser.
mvn -B package --file pom.xml -P <profile_name>
The available profiles include dev, local, test, and ci.
Refer to src/environments/environment.ci.template
file and ensure that the right environment varaibles are set for the build.
Packing with ci
profile calls build-ci
script in package.json
.
It creates a environment.ci.ts
file with all environment variables used in the generared build.
All features have been exposed as REST endpoints. Refer to the SWAGGER API specification for details.