diff --git a/HospitalManagement.Database/HospitalManagement.Database.sqlproj b/HospitalManagement.Database/HospitalManagement.Database.sqlproj index 8ef9c16..16ee7a8 100644 --- a/HospitalManagement.Database/HospitalManagement.Database.sqlproj +++ b/HospitalManagement.Database/HospitalManagement.Database.sqlproj @@ -127,4 +127,7 @@ + + + \ No newline at end of file diff --git a/HospitalManagement.Database/SampleData.sql b/HospitalManagement.Database/SampleData.sql new file mode 100644 index 0000000..e209424 --- /dev/null +++ b/HospitalManagement.Database/SampleData.sql @@ -0,0 +1,4 @@ +insert into Hospital values +('Mercy', 'Our Mercy health system was founded by the Sisters of Mercy in 1986. But our heritage goes back more than 195 years. It began with an Irish woman named Catherine McAuley, who was determined to help women and children in Dublin experiencing poverty.', '#a7ae7b', '4057551515', 'contact@mercy.net', 'https://www.mercy.net/'), +('Integris', 'As the state''s largest not-for-profit and Oklahoma-owned health care system, with hospitals, specialty clinics, family care practices and centers of excellence, INTEGRIS Health is here for you. But medicine isn''t always about caring for the sick. It''s about doing everything in our power to keep our friends and neighbors and every Oklahoman healthy.', '#106654', '4059493011', 'contact@integrishealth.org', 'https://integrishealth.org/'), +('SSM Health', 'SSM Health is a Catholic, not-for-profit health system providing high-quality, compassionate, and personalized care to communities across Illinois, Missouri, Oklahoma, and Wisconsin.', '#00194c', '4052727000', 'contact@ssmhealth.com', 'https://www.ssmhealth.com/') \ No newline at end of file diff --git a/HospitalManagement.Web/Views/Home/Edit.cshtml b/HospitalManagement.Web/Views/Home/Edit.cshtml index 37d3bc3..81a9850 100644 --- a/HospitalManagement.Web/Views/Home/Edit.cshtml +++ b/HospitalManagement.Web/Views/Home/Edit.cshtml @@ -39,20 +39,20 @@
- - + +
- - + +
- - + +
diff --git a/README.md b/README.md index 12587be..2313770 100644 --- a/README.md +++ b/README.md @@ -3,18 +3,22 @@ ## Initialization 1. Ensure the server for the database to be used has SQL Server logins enabled. - 1. Change the connection string in `appsettings.json` to point to a database of your choice. + 1. Change the connection string in `HospitalManagement.Web` > `appsettings.json` to point to a database of your choice. * If the database is not of type Microsoft SQL Server, you will want to change the extension method in `HospitalManagement.Config.HospitalContext` from `UseSqlServer()` to your database engine of choice. - 1. At the root of the `HospitalManagement.Web` project, run the below command in your command prompt: + 2. At the root of the `Web` project, run the below command in your command prompt: ```cmd dotnet user-secrets set "Database__Password" "" ``` - 4. Update the password set in `HospitalManagement.Database.Security.HospitalManagementUser.sql` to match the password you entered above. - 5. Publish the `HospitalManagement.Database` project to your database. - 6. Run the below command at the root of the `HospitalManagement.Web` project: + 4. Update the password set in `HospitalManagement.Database` > `Security` > `HospitalManagementUser.sql` to match the password you entered above. + 5. Publish the `Database` project to your database. + 6. It is recommended to now delete the aforementioned `HospitalManagementUser.sql` file to avoid committing your database user's password into source control. + 7. Run the below command at the root of the `Web` project: ```cmd npm install ``` + +### Optional +1. Execute the `SampleData.sql` script in the `Database` project to insert some sample data into the application's database.