Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.24 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.24 KB

Hospital Management

Interview challenge project to build CRUD app for hospitals.

Initialization

  1. Ensure the server for the database to be used has SQL Server logins enabled.
  2. 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.
  3. At the root of the Web project, run the below command in your command prompt:
dotnet user-secrets set "Database__Password" "<your password goes here>"
  1. Update the password set in HospitalManagement.Database > Security > HospitalManagementUser.sql to match the password you entered above.
  2. Publish the Database project to your database.
  3. It is recommended to now delete the aforementioned HospitalManagementUser.sql file to avoid committing your database user's password into source control.
  4. Run the below command at the root of the Web project:
npm install

Optional

  1. Execute the SampleData.sql script in the Database project to insert some sample data into the application's database.