Skip to content

Commit

Permalink
Clean up README and recommend deleting user SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
lukearnould committed Jul 31, 2024
1 parent 9b7409c commit 22c3224
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
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.
* 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" "<your password goes here>"
```

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.
7. 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 `HospitalManagement.Database` to insert some sample data into the application's database.
1. Execute the `SampleData.sql` script in the `Database` project to insert some sample data into the application's database.

0 comments on commit 22c3224

Please sign in to comment.