Bahmni Connect 개발
AngularJS 개발을 위해 개발 컴퓨터에 다음 도구 체인을 설치해야 합니다.
- Xcode(mac 전용). Ruby. Node v10.11.0. Yarn. 프로젝트별 node 모듈.
다음 지침을 사용하십시오. 1단계의 구체적인 방법은 운영체제에 따라 다르며 여기서는 mac 기준으로 설명합니다.
- Xcode와 yarn을 설치합니다. 전역으로 필요한 다음 모듈을 설치합니다(한 번만 수행). bash
- GitHub에서 bahmni-connect 저장소를 체크아웃합니다. Bahmni Connect 프런트엔드 프로젝트에는 다음 명령을 실행해야 합니다. 프로젝트의 ui 폴더에서 실행합니다. bash
gem install compass - GitHub에서 bahmni-offline 저장소를 체크아웃합니다(Android 앱에만 필요). Bahmni Connect 프런트엔드 프로젝트 폴더에서 다음 명령을 실행하여 vagrant /var/www에 심볼릭 링크를 만듭니다. bash
# Install dependencies (Installed node dependencies into node_modules. UI dependencies are installed in node_modules/@bower_components and create a soft link to app/components). yarn install
# links dist folder
./scripts/vagrant-link.shChrome 앱(PWA):
- PWA를 번들링하려면 Bahmni Connect 프런트엔드 프로젝트의 ui 폴더에서 다음 명령을 실행합니다. bash
# To genearte css files yarn compass # To minify and bundle PWA related source code yarn chrome # To generate service workers files yarn sw - 로컬 컴퓨터에서 Connect PWA를 디버깅하려면 "yarn devchrome"을 실행합니다. 그러면 축소되지 않은 js 파일이 "bahmni-connect/ui/dist/" 위치에 생성됩니다. Chrome에서 bahmni-connect 앱에 접근하려면 https://<host name>/bahmni-connect 로 이동합니다.
Android 앱:
- GitHub에서 bahmni-offline 저장소를 체크아웃합니다(Android 앱에만 필요). bahmni-offline 프로젝트의 README.md 파일에서 권장하는 단계를 따릅니다. Android 앱을 번들링하려면 Bahmni Connect 프런트엔드 프로젝트의 ui 폴더에서 다음 명령을 실행합니다. bash
- bahmni-connect/ui 폴더의 dist 폴더를 bahmni-offline/android/www/app으로 복사합니다. 기기에 Android 앱을 설치하려면 bahmni-offline/android에서 다음 명령을 실행합니다(기기가 시스템에 연결되어 있어야 함). bash
# To genearte css files
yarn compass
# To minify and bundle android app related source code
yarn androidionic run android원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0