100 Commits
Author SHA1 Message Date
Steve SmithandGitHub e7d71ea572 Separate OrderViewModel from OrderDetailsViewModel (#904)
* Separate OrderViewModel from OrderDetailsViewModel

* Update packages
2023-05-23 14:55:24 -04:00
Steve SmithandGitHub dbc19cf611 Update README.md
Update .NET 6 reference to .NET 7
Note that the PDF will need to be created and published before it will have the latest .NET 7 changes in it.
2023-03-20 21:53:34 -04:00
Steve SmithandGitHub d2412a84a9 Fix Null Warnings (#874)
* Fixing null warnings

* Fix null warnings
Fix other compiler warnings
2023-03-20 11:52:14 -04:00
Steve Smith a2ebd3fe26 Update references 2023-03-14 14:19:38 -04:00
Steve Smith 0542c52d79 update mediatR 2023-02-28 15:15:46 -05:00
Steve Smith 74e067a734 package updates 2023-02-28 15:12:24 -05:00
Steve SmithandGitHub 6fc0e83aaa Update README.md 2021-12-16 13:48:34 -05:00
Steve Smith 5b69b5b03c Code cleanup 2021-12-12 18:32:21 -05:00
Steve SmithandGitHub 36066ee7f3 Fix Security Issues (#644)
* Apply fix for Microsoft Security Advisory CVE-2018-0784

* Apply fix for Microsoft Security Advisory CVE-2018-0785
2021-12-12 18:25:39 -05:00
Steve SmithandGitHub ce63e38a23 net6conversion (#642)
* Converting to net6 startup and integration test formats

* Update to minimal api and using pagetitle

* Adjust functional test fixtures
Update ApiEndpoints package version

* Finish migration to minimal api startup
2021-12-06 15:14:43 -05:00
Steve Smith 20b060aeb3 Re-adding BasketQueryService 2021-12-04 11:49:05 -05:00
Steve Smith a675f3ad57 Merge branch 'main' of https://github.com/dotnet-architecture/eShopOnWeb 2021-12-02 16:04:43 -05:00
Steve Smith 833dc3bd3a Refactor to eliminate unneeded BasketQueryService 2021-12-02 16:04:30 -05:00
Steve Smith 6f5a6c0860 Fixed codeanalysis issue 2021-11-11 17:34:54 -05:00
Steve SmithandGitHub 4da4822e8e Update AddItemToBasket.cs 2021-10-26 12:40:40 -04:00
Steve SmithandGitHub c7e171e03f move GuardExtensions (#595) 2021-10-26 12:38:35 -04:00
Steve SmithandGitHub 8a45a2c858 Update Specification and other packages to latest version (#582)
* Updating repositories and specification version
Need to fix broken tests

* removing test that would just be testing mocked result now

* Refactored from IAsyncRepository and removed it.
Tests pass.

* Update packages
2021-10-25 15:13:02 -04:00
Steve SmithandGitHub 15bd78ee5b Add default Development launch profile for Kestreal (#522) 2021-04-14 16:27:56 -04:00
Steve SmithandGitHub ba9aea29bd Update to latest Endpoints package and fix breaking changes (#506) 2021-02-13 10:50:31 -05:00
Steve SmithandGitHub 2e9ac0f6e5 Update README.md 2020-10-28 14:09:31 -04:00
Steve Smith d32c490d73 Removing docs folder to keep repo size smaller 2020-09-14 13:07:23 -04:00
Steve Smith 01174bb677 Update eBook with v3.1 2020-09-11 17:24:41 -04:00
Steve SmithandGitHub 754c845e9f Upgrade to use Specification 4.0.0 (#444) 2020-07-31 14:52:14 -04:00
Steve Smith f901db156a Removing AuthService and fixing Dockerfile for PublicApi 2020-07-31 00:19:17 -04:00
e9a9dc06d7 Updating Blazor Admin (#442)
* Updating Blazor services

* Adding Settings and Refactoring Services

* WIP - Fighting with DI

* Configuring dependencies in both Web Startup and BlazorAdmin Program.cs has them working again.

* Everything works; need to optimize calls to ListBrands

* LocalStorageBrandService decorator working

* Added cache duration of 1 minute

* Refactoring to reduce token storage
Fixed issue with dropdowns binding to int

* Remove token stuff from login; moved to CustomAuthStateProvider

* Migrated CatalogTypes to separate service
Implemented cache decorator

* Ardalis/blazor refactor (#440)

* 1. Migrate CatalogItemServices -> CatalogItemService.
3. Add caching to CatalogItemService.

* change to $"Loading {key} from local storage" ?

* docker settings added. (#441)

* docker settings added.

* InDocker Removed

* InDocker removed from web startup.

* removed unused using

* no reload list if close without save

* startup patch for localhost

* file name fixed

* removed docker from launchSettings.

* Configure logging via appsettings

Co-authored-by: Shady Nagy <info@shadynagy.com>
2020-07-30 23:50:51 -04:00
Steve Smith 3ee9fff14a Fix using 2020-07-28 17:02:33 -04:00
Steve Smith b30b0c2eef Code cleanup 2020-07-28 16:12:50 -04:00
Steve Smith 2c9c7dd3d1 Code cleanup 2020-07-28 15:35:48 -04:00
Steve SmithandGitHub ec5ffefb31 Update README.md 2020-07-27 12:07:31 -04:00
Steve Smith f4bfc81fe8 Updating README with running the sample instructions 2020-07-25 17:04:23 -04:00
Steve Smith 9eb120b81e remove usings 2020-07-25 16:56:24 -04:00
Steve SmithandGitHub f582182698 Update README.md 2020-07-24 12:40:49 -04:00
Steve SmithandGitHub 68f29a55e4 Update README.md 2020-07-24 12:39:35 -04:00
8d3ac693d4 Add Blazor WebAssembly Admin Page (#426)
* Added Blazor Client
Configured PublicAPI CORS to allow traffic from client

* Make admin page home page; remove extra pages
Add CatalogType list endpoint

* Wired up Types and Brands in the API and the admin list page

* Adding a custom HttpClient to talk securely to API

* Ardalis/blazor (#419)

* Login added

* AuthService will handel http request secure and not secure.

* Logout added

* CatalogBrandService in it is own service

* Get token from localstorage when refresh.

* used GetAsync

* Fixed Login and Logout switch.

* CatalogItemService added

* CatalogTypeService added & Auth for CatalogType.
using not used removed.

* Made BlazorComponent and BlazorLayoutComponent for refresh.
Index now small enough to be in one file.

* Removed the service from program main and use lazy singleton.

* used OnInitialized

* Refactoring and detecting login status in login.razor

* Refactoring login to redirect if user is already logged in

* Blazor login with MVC (#420)

* Blazor login with MVC

* return back the PasswordSignInAsync in Login page

* CRUD added (#422)

* CRUD added

* Unit Test changed to meet new redirect /admin

* CreateCatalogItemRequest added.

* Action caption added.

* Validation added for name and price.

* Updated port of api
Redirect to returnUrl from login

* Add username to /admin; link to my profile

* Working on authorization of /admin

* Working on custom auth locking down /admin page

* Microsoft authorize working.Login.razor removed.Login from SignInMana… (#425)

* Microsoft authorize working.Login.razor removed.Login from SignInManager and create token from it.unit test fixed.

* GetTokenFromController function used in CustomAuthStateProvider

* Cleaned up button styles
Refactored to use codebehind for List component
Updated Not Authorized view

Co-authored-by: Shady Nagy <shadynagi@gmail.com>
2020-07-24 12:36:47 -04:00
Steve Smith 4253660bc3 Merging with remote master 2020-07-10 11:54:11 -04:00
Steve SmithandGitHub 1c75f08a33 Add catalogitem update endpoint to public api (#418)
* Initial update endpoint working

* Updated CatalogItem to support more updates; added tests

* Got MediatR domain events working to check for duplicate item names

* Adding reference link

* Remove domain events spike code

* clean up usings
2020-07-10 11:50:46 -04:00
Steve Smith 2911d5821e Updated CatalogItem to support more updates; added tests 2020-07-03 12:46:33 -04:00
Steve Smith 14fbb4284a Initial update endpoint working 2020-07-03 12:17:46 -04:00
dd5a435cb4 Adding Endpoints with Authorization in separate PublicApi project (#413)
* Adding tests for GetById endpoint

* Updating tests and messages

* Adding paged endpoint and also AutoMapper

* Authenticate endpoint works as bool with tests

* Got JWT token security working with Create and Delete endpoints and Swashbuckle.

* Working on getting cookie and jwt token auth working in the same app
All tests are passing

* Creating new project and moving APIs
Build succeeds; tests need updated.

* all tests passing after moving services to PublicApi project

* Fix authorize attributes

* Uncomment and update ApiCatalogControllerLists tests

Co-authored-by: Eric Fleming <eric-fleming18@hotmail.com>
2020-06-30 11:36:28 -04:00
Steve SmithandGitHub b4d0f07c2e Adding API Endpoints for Catalog Items (#410)
* Adding new Endpoints

* update nuget packages

* Modifying API to work well with Swagger.

* Remove Swashbuckle.Core
2020-06-25 16:23:44 -04:00
Steve SmithandGitHub 3030e97af6 Migrated some tests to use System.Text.Json (#385)
* Migrated some tests to use System.Text.Json

* Added case insensitive json options to fix broken tests.
2020-05-28 15:48:24 -04:00
Steve SmithandGitHub 1007a6b0fc Update README.md 2020-02-20 10:18:44 -05:00
Steve SmithandGitHub 0d4061a6b6 Update README.md 2020-02-20 10:14:56 -05:00
Steve SmithandGitHub fa8839e1d8 Minor 3.x Updates (#339)
* remove unnecessary call

* Refactoring test fixture
2019-12-18 16:59:25 -05:00
Steve SmithandGitHub 4127d90b01 Adding docker-compose project (#302) 2019-09-11 23:35:13 -04:00
Steve SmithandGitHub 8e1952158a Update BaseApiController.cs 2019-08-30 10:05:23 -04:00
Steve Smith 305be555db Updated packages; Using configuration classes for EF Core. 2019-08-18 15:16:31 -04:00
Steve Smith ee3697ea97 Updating PDF to latest version 2.2 2019-06-13 17:43:45 -04:00
Steve SmithandGitHub ccaef555ab Updated Azure Guidance (#244) 2019-04-30 07:55:02 -04:00
Steve SmithandGitHub 3aedf59e04 Update README.md 2019-04-25 07:51:46 -04:00
Steve Smith c0f0cf3a1a Merge remote-tracking branch 'origin/master' 2019-04-09 09:35:08 -04:00
Steve Smith 72e8929b25 Updating README 2019-04-09 09:35:01 -04:00
Steve Smith 765e1508bf Got RedirectToLoginIfNotAuth test working 2019-02-22 14:21:14 -05:00
Steve SmithandGitHub f5a17ec635 Fixed SCSS variables reference issue (#218)
Fixed tests relying on /sign-in renamed to /login
2019-02-22 12:58:36 -05:00
Steve SmithandGitHub ae8e7c2560 Updating book cover image 2019-02-13 12:40:13 -05:00
Steve SmithandGitHub 0dd2f7892a Adding link to ePub/Mobi download page 2019-02-13 12:38:25 -05:00
Steve Smith e971dc2ea8 Cleaning up separate WebRazorPages proj 2019-02-07 09:11:57 -05:00
Steve Smith 9bc226d257 Update README to 2.2 2019-02-07 09:07:53 -05:00
Steve Smith 746c0c9945 Updated docker-compose port 2019-01-28 15:22:09 -05:00
Steve Smith 9d75890302 Test cleanup and adding code coverage 2019-01-25 15:58:59 -05:00
Steve SmithandGitHub 8941e6b9a6 Login POST Test Working (#198)
* Got login test working

With request verification token
2019-01-25 13:54:35 -05:00
Steve SmithandGitHub 1b610dd7a4 Adding functional tests (#197)
* Working on login tests

* Testing login with an integration test

Working on login functional test.

* Got functional login test working
2019-01-25 13:13:01 -05:00
Steve Smith cd7bbc0e59 Merge remote-tracking branch 'origin/master' 2019-01-22 21:44:14 -05:00
Steve Smith 88835916d8 Cleaning up docker files 2019-01-22 21:44:06 -05:00
Steve Smith 2bf7f9f78b Fixing port mapping 2019-01-21 17:23:50 -05:00
Steve SmithandGitHub 99c416142f Consolidate Web and WebRazorPages Projects (#192)
* Moved Privacy, Home page to Razor Pages

* Migrating Basket from RazorPages to Web.

* Removed BasketController; refactored viewmodels

* Moved BasketComponent into Pages/Shared
Added auth rules to Startup for Pages
Added notes to controllers about Pages usage.

* Fixed broken my orders test
Consolidated Functional Tests

* Fixed logo link to home page
Fixed Order Detail Total $ format
2019-01-18 13:29:00 -05:00
Steve SmithandGitHub 483340f21e Adding API Health Check (#191) 2019-01-18 11:48:26 -05:00
Steve SmithandGitHub 84f1eeee8c Added HealthCheck (#188)
Checks home page.
2019-01-11 13:27:15 -05:00
Steve SmithandGitHub c64c70b183 Add LinkGenerator to AllServices middleware (#187)
* Adding slugify parameter transform

Fixes #172

* Cleaning up code

And slugifying my orders

* Added links to allservices using LinkGenerator
2019-01-11 12:53:08 -05:00
Steve SmithandGitHub bc328077b0 Adding slugify parameter transform (#185)
* Adding slugify parameter transform

Fixes #172

* Cleaning up code

And slugifying my orders
2019-01-11 12:39:48 -05:00
Steve SmithandGitHub 6c41a1bab9 Upgrade to 2.2 (#171)
* Initial Web2 project working

* Initial WebRazorPages project working

* Adding additional sln files

* Removing old project

* Fixed integration tests

* Getting FunctionalTests working.

* Got Swagger working in Web

* Moved web2 to web
2018-12-28 10:04:35 -08:00
Steve SmithandGitHub 1fe6becfcc Reformatting 2018-11-27 10:13:43 -05:00
Steve SmithandGitHub 9cca5553e2 Adding one more set of curly braces 2018-11-27 10:12:22 -05:00
Steve SmithandGitHub fe0471eea4 Adding curly braces for if statements 2018-11-27 10:11:41 -05:00
Steve Smith 95a2a6208f Removing bower artifacts 2018-08-29 13:44:28 -04:00
Steve Smith 005d83d802 Removing pageId from route
Fixes #104. The parameter should be passed as a querystring, not a route parameter.
2018-06-12 09:41:23 -04:00
Steve Smith 8bd20ef98b Fix OrderDetails to use Id, Customer
Fixes #106
2018-06-11 14:28:47 -04:00
Steve Smith ad49bf1388 Adding docker instructions to README 2018-06-07 15:54:21 -04:00
Steve Smith a94990e343 Merge remote-tracking branch 'origin/master' 2018-06-07 15:50:38 -04:00
Steve Smith 48ad346b3c Updating Dockerfiles
Adding instructions and cleaning up.
2018-06-07 15:50:32 -04:00
Steve Smith faa41f9d89 Cleaning up real db configuration 2018-06-05 11:57:50 -04:00
Steve SmithandGitHub 8bf2a7ade1 Update README.md 2018-05-31 12:35:57 -04:00
Steve Smith 549baab979 Merge remote-tracking branch 'origin/master' into netcore2.1 2018-05-31 12:29:12 -04:00
Steve Smith 814d3e249c Adding Tests and Refactoring
Functional Tests for RazorPages added
2018-05-31 12:28:55 -04:00
Steve Smith 5fb9e741dd Updated to 2.1 RTM
And updated functional tests to use CustomWebApplicationFactory.
2018-05-30 22:05:58 -04:00
Steve Smith 074bdb2a66 Adding functional tests using WebApplicationFactory 2018-05-29 22:20:07 -04:00
Steve Smith 8c11da75ae Moving shared files to Shared folder
Razor Pages now supports /Pages/Shared for shared files.
2018-05-29 13:40:46 -04:00
Steve Smith 2ab390fa6d Using partial Tag Helper 2018-05-29 13:35:14 -04:00
Steve SmithandGitHub 8169d2f485 WIP (#95) 2018-05-29 10:05:50 -04:00
Steve SmithandGitHub 5b268b210b Minor specification updates (#93) 2018-05-23 16:21:50 -04:00
Steve Smith 9075221073 Added docker support 2018-05-22 14:23:55 -04:00
Steve Smith 7456c26daf converting to partial taghelper 2018-05-19 17:40:06 -04:00
Steve SmithandGitHub a63f0ad921 Updating version info in README 2018-05-19 17:30:40 -04:00
Steve Smith c5a2c86ff0 Final updates to work with 2.1RC1 2018-05-19 17:21:55 -04:00
Steve Smith 80604062d9 Updating to 2.1RC1 2018-05-19 17:13:55 -04:00
Steve Smith 4e7f3d7302 Updated runtimes to 2.1
Functional Tests are currently failing.
2018-05-18 17:42:16 -04:00
Steve Smith ed6dc61ad8 Updated to latest xunit packages 2018-05-18 17:34:48 -04:00
Steve Smith 108d894826 Updated to rc1-final of 2.1 2018-05-18 17:34:07 -04:00
Steve Smith af7019cfdb Updating to latest released versions 2018-05-18 17:27:49 -04:00
Steve SmithandGitHub f6f85869fb Updating Infrastructure to NetStandard (#86) 2018-04-09 10:13:50 -04:00