- This details for developers who wants to clone DanpheEMR, Use it and help us for improvements.
- We have all details like software and tools requirements
- Step by step guide for build and run project
- Database creation and more..
- Make sure you run source code from a proper drive like "C:\Danphe" drive or "D:\Danphe" drive and not in Desktop or downloads folder. This is needed because the code needs elevated rights.
- In Appsettings.json change the below values to your directory paths
"ServiceAccountKey": "D:\\DanpheGitLab\\FileUploadTest\\credentials.json",
"LoggerFilePath": "D:\\DanpheGitLab\\FileUploadTest\\FileUploadTestLogger",
"UploadFileBasePath": "D:\\DanpheGitLab\\FileUploadTest\\LabReports"
- Go to
Code\Websites\DanpheEMR\wwwroot\DanpheApp
path and open DanpheApp folder in VS code - Open a new terminal and execute below command
- Then execute below command
npm install
ng build --watch
- Go to Database folder and execute
1. DanpheAdmin_CompleteDB.sql
file in sql server(This will create admin database) - Go to Database folder extract rar file
2.DanpheEMR_OS.rar
- Then restore database by using bak file in database folder and this is main database with name
DanpheEMR_OS
- After successful restore go to Database folder and execute increamental file
3.Increamental_DBScript.sql
onDanpheEMR_OS
database
- Go to
Code\Solutions
and open solutionDanpheEMR.sln
in visual studio
Note: If MINJEMR project not loaded in visual studio then please install .net core sdk version 3.1.301
or change sdk version number as per your machine sdk in global.json file
path=> Solution Items\global.json file
<li><strong>Update appsetting.json file for database name and credentials </strong>
<p class="details">Go to DanpheEMR project (in visual studio) and open appsettings.json file</p>
<p class="details">Here we have 3 connection strings. Update every connection string with your machine database name (initial catalog) and data source name.</p>
</li>
<li><strong>Build DanpheEMR (project server side)</strong>
<p class="details">Go to visual studio and right click on solution name</p>
<p class="details">click on Rebuild solution</p>
</li>
<li><strong>Run project</strong> </li>
<!-- <p class="Details">(without debuging) Go to visual studio click on Debug menu => click on "Start without debuging" / ctrl+f5</p><br>
<p class="Details">(with debuging) Go to visual studio click on Debug Menu => click on "Start Debuging"</p> -->
</ul>
</div>
</div>
=================================================== ===================================================
Apache Tomcat 7.0 requires a Java Standard Edition Runtime Environment (JRE) version 7.0.
(1) Download and Install a Java JDK version 7.0
(2) Download and Extract The Source Code To C:/MINJDICOM
(3) Configure Environment Variables
- (a) set JAVA_HOME to jdk dir e.g C:\Program Files\Java\jdk1.7.0_79
- (b) set JRE_HOME to jre dir e.g C:\Program Files\Java\jdk1.7.0_79/jre
- (c) Set MINJDICOM_HOME to C:/MINJDICOM
Press Windows + R, paste the code below:
%MINJDICOM_HOME%\bin\startup.bat
(4.2) After startup, the default web applications included with Tomcat will be available by visiting:
http://localhost:8080/