Commit Graph
100 Commits
Author SHA1 Message Date
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
Steve SmithandGitHub c276b11ca0 Ardalis/cleanup (#75)
* Replace Magic String with nameof

* Remove commented code
2018-01-04 11:18:50 -05:00
Steve SmithandGitHub 9d32c48c30 Replace Magic String with nameof (#74) 2018-01-04 10:57:53 -05:00
Steve SmithandGitHub b864be9265 Adding guards and more tests (#68)
* Adding single entity by spec method to repository

* Adding guards and more unit tests
2017-10-30 11:53:29 -07:00
Steve SmithandGitHub 3d46c80cff Adding 2FA Authenticator Support (#66)
* Adding support for 2fa, more auth options

* WIP getting auth stuff working

* Added Manage views. 2FA working now for MVC app.

* Switching to using a controller for no-UI logout scenario

* Adding Razor Pages impl of 2FA auth stuff. Works.
2017-10-23 21:58:21 -04:00
Steve SmithandGitHub 101b7bab9b Missed One Commit (#65)
* Cleaning up Checkout auth

* Mapping order items to backing field properly in DbContext
2017-10-23 13:52:39 -04:00
Steve SmithandGitHub 4a549c3401 Cleaning up Checkout auth (#64) 2017-10-23 13:51:27 -04:00
Steve SmithandGitHub 749a37d6d9 Minor cleanup (#63) 2017-10-23 12:11:55 -04:00
Steve SmithandGitHub 16a6f83ef4 Adding Auth (#62)
* Refactoring ViewModels into Razor Pages models

* Cleaning up Basket viewcomponent

* Refactoring services.
Fixed bug in basket item counter.

* Adding Auth filters to Web and WebWithRazor
2017-10-23 11:22:54 -04:00
Steve SmithandGitHub 16d81ae450 Refactoring Services (#61)
* Refactoring ViewModels into Razor Pages models

* Cleaning up Basket viewcomponent

* Refactoring services.
Fixed bug in basket item counter.
2017-10-23 10:52:33 -04:00
Steve SmithandGitHub dea73a5f5e Adding Razor Pages Version (#60)
* In progress copying code into new RP project
Cleaning up namespaces and whitespace in original Web project

* Cleaning up some more namespaces

* Removing unused page.

* Index page loads correctly.

* Fixing up paging.

* Moving views; getting ready to convert to RPs

* Auto stash before merge of "master" and "origin/master"

Basket and Checkout pages wired up

* WIP on Account pages

* Working on signin/signout

* Working on auth

* Getting order history working
Fixing auth bug

* Fixing Checkout issue

* Fixing link
2017-10-23 09:23:57 -04:00
Steve SmithandGitHub 0eb4d72b89 Refactoring and Adding Tests (#58)
* Moving Identity seeding to its own class and method.

* Adding tests for AddItem

* Added catalog api controller and functional tests
Added and cleaned up some comments

* Adding integration tests for OrderRepository

* Getting integration test for order working with inmemory db
2017-10-20 12:52:42 -04:00
Steve SmithandGitHub 32950aa175 Cleaning up EF 2.0 Migrations (#57)
Moving Seed logic to Program.cs
2017-10-18 14:25:10 -04:00
Steve Smith 8de663eab6 Merge branch 'netcore2.0' 2017-10-18 13:19:40 -04:00
Steve SmithandGitHub 964173f277 Using Base Specification Class (#56)
* Ardalis/upgrade1 (#44)

* Upgrading to netcore 2.0
Updating repository to support async options and refactoring to use it.

* Starting work on tracking customer orders feature.

* Cleaning up some bugs
Working on basket view component implementation

* Fixing up styles, especially for basket in header.

* Adding Order Features (#47)

* Working on order model binding from checkout page - WIP

* Small layout tweaks (#43)

* Updating quantities implemented.

* Fixed basket widget count

* Order History (#49)

* working on creating and viewing orders.
* Working on wiring up listing of orders
* List orders page works as expected. Needed to support ThenInclude scenarios. Currently using strings.

* Remove non-icon basket link from header
Add comments to EF query logic

* Refactoring to use base specification type

* minor cleanup
2017-10-18 13:18:25 -04:00
Steve Smith 3bf1454025 Remove non-icon basket link from header
Add comments to EF query logic
2017-09-25 22:43:22 -04:00
Steve SmithandGitHub aca618316a Initial Upgrade to .NET Core 2.0 (#50)
* Ardalis/upgrade1 (#44)

* Upgrading to netcore 2.0
Updating repository to support async options and refactoring to use it.

* Starting work on tracking customer orders feature.

* Cleaning up some bugs
Working on basket view component implementation

* Fixing up styles, especially for basket in header.

* Adding Order Features (#47)

* Working on order model binding from checkout page - WIP

* Small layout tweaks (#43)

* Updating quantities implemented.

* Fixed basket widget count

* Order History (#49)

* working on creating and viewing orders.
* Working on wiring up listing of orders
* List orders page works as expected. Needed to support ThenInclude scenarios. Currently using strings.
2017-09-22 11:28:55 -04:00
Steve SmithandGitHub 5c7f590ce0 Merge branch 'master' into netcore2.0 2017-09-22 11:28:33 -04:00
Steve SmithandGitHub d776ce7cb2 Order History (#49)
* working on creating and viewing orders.
* Working on wiring up listing of orders
* List orders page works as expected. Needed to support ThenInclude scenarios. Currently using strings.
2017-09-22 11:25:32 -04:00
Steve SmithandGitHub db6ad75aee Adding Order Features (#47)
* Working on order model binding from checkout page - WIP

* Small layout tweaks (#43)

* Updating quantities implemented.

* Fixed basket widget count
2017-09-13 18:10:19 -04:00
Steve SmithandGitHub ed5d17672d Ardalis/upgrade1 (#44)
* Upgrading to netcore 2.0
Updating repository to support async options and refactoring to use it.

* Starting work on tracking customer orders feature.

* Cleaning up some bugs
Working on basket view component implementation

* Fixing up styles, especially for basket in header.
2017-08-28 12:15:18 -04:00
Steve SmithandGitHub 19c10ed0e5 Update README.md 2017-08-25 08:33:37 -04:00
Steve SmithandGitHub 26a43cd4ad Fixing typo; adding migration creation notes 2017-08-23 15:15:54 -04:00
Steve SmithandGitHub eefc8170cb Updating and testing migrations (#42)
Updating readme to describe how to run migrations
2017-08-22 17:58:53 -04:00
Steve SmithandGitHub ecb4889dd3 Basket persistence (#41)
* Renamed Cart to Basket throughout
* Implemented cookie-based anonymous basket handling and transfer to user upon login. Still need to implement transfer upon registration.
2017-08-22 13:51:08 -04:00
Steve SmithandGitHub 3a95375ae7 Renaming Cart to Basket (#38) 2017-08-15 14:28:36 -04:00
Steve SmithandGitHub 434da3f257 Fixing Layout and Updating book (#35)
* Auto stash before merge of "master" and "origin/master"

Using catalog CSS files regradless of environment

* Removed duplicate paragraph
2017-08-14 16:37:45 -04:00
Steve SmithandGitHub f0c8f3e234 App Startup (#34)
* Adding ConfigureProduction as copy of ConfigureDevelopment.

* Configuring bundling and updating default appsetting value to work for local images (the setting is still useful for CDN scenarios).
2017-08-08 20:37:51 -04:00
Steve SmithandGitHub a8f150aac7 Implementing Registration. (#32) 2017-08-07 15:21:03 -04:00
Steve SmithandGitHub 1193af57ef update readme (#31)
* Updating readme

* Fixing broken link in eBook
2017-08-07 14:33:09 -04:00