|
1 | 1 | # A simple, cross platform, modulith ecommerce system built on .NET Core [](https://gitter.im/simplcommerce/SimplCommerce?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
| 2 | +[](https://app.fossa.com/projects/git%2Bgithub.com%2Fsimplcommerce%2FSimplCommerce?ref=badge_shield) |
2 | 3 |
|
3 | 4 | ## High level architecture |
4 | 5 |
|
@@ -29,11 +30,20 @@ Continuous deployment: https://ci.simplcommerce.com |
29 | 30 |
|
30 | 31 | #### Steps to run |
31 | 32 |
|
32 | | -- **Update the connection string**: Open `appsettings.json` in `src/SimplCommerce.WebHost`. |
33 | | - - If you have **SQL Server** installed: |
34 | | - `"DefaultConnection": "Server=localhost;Database=SimplCommerce;Trusted_Connection=True;TrustServerCertificate=true"` |
35 | | - - If you **do not have SQL Server**, you can use **Visual Studio LocalDB**: |
36 | | - `"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=SimplCommerce;Trusted_Connection=True;TrustServerCertificate=true;MultipleActiveResultSets=true"` |
| 33 | +- Update the connection string: Open appsettings.json in src/SimplCommerce.WebHost. |
| 34 | + The default is configured for a local SQL Server |
| 35 | + ```json |
| 36 | + { |
| 37 | + "DefaultConnection": "Server=.;Database=SimplCommerce;Trusted_Connection=True;TrustServerCertificate=true" |
| 38 | + } |
| 39 | + ``` |
| 40 | + If you are using Visual Studio LocalDB, change it to |
| 41 | + ```json |
| 42 | + { |
| 43 | + "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=SimplCommerce;Trusted_Connection=True;TrustServerCertificate=true;MultipleActiveResultSets=true" |
| 44 | + } |
| 45 | + ``` |
| 46 | +- Ensure you have a database named `SimplCommerce` created in your SQL instance, or change the `Database` name in the connection string to match your environment. |
37 | 47 | - Build the whole solution. |
38 | 48 | - In Solution Explorer, make sure that SimplCommerce.WebHost is selected as the Startup Project |
39 | 49 | - Open the Package Manager Console Window and make sure that SimplCommerce.WebHost is selected as the Default project. Then type "Update-Database" then press "Enter". This action will create the database schema. |
@@ -104,3 +114,6 @@ Become a sponsor and get your logo on our README on Github with a link to your s |
104 | 114 | ## License |
105 | 115 |
|
106 | 116 | SimplCommerce is licensed under the Apache 2.0 license. |
| 117 | + |
| 118 | + |
| 119 | +[](https://app.fossa.com/projects/git%2Bgithub.com%2Fsimplcommerce%2FSimplCommerce?ref=badge_large) |
0 commit comments