Please enable JavaScript.
Coggle requires JavaScript to display documents.
Virto - Storefront (Solution file notes (start-up.cs (configureServices…
Virto - Storefront
Solution file notes
web.config
Can add logging to be enabled
Can specify a file to contain the logging
start-up.cs
configureServices
Has all the interfaces listed
doesn't use IUntity
endpoints
for the platform and storeage
Authentication providers
Middlewares
workcontent
liquid engine
appsettings.js
Values for the endpoints
Store settings
Views
Layout
Generic ones
No prepared views as they are taken from the theme
Error pages
Controllers
Mvc URL route ones
API folder ones
get called by angular
Have prefix of api
WorkContext.cs
Has all the view possible data
LiquidThemeEngine project
LiquidThemeEngine.cs
Methods for rendering different aspects of a theme
converts folder
class converters files
converts storefront model to liquid
Model project
Where the interfaces and classes are for overriding through a new module
AutoRest
strongly typed platform API clients
To add a new module to the storefront as a client
edit readme file
Copying the two lines before it but change the url to not have virtocommerce within it
Do this to get it auto generated as a client within
AutoRestClients folder
To get it within swagger
Dependency injection
Adding it along with it's api to swagger
Install npm
Use a module that has a API method
Readme file
$modules =
('ManagedModule1')
$modules.ForEach( { autoRest -Input
http://localhost/admin/docs/$_/v1
-OutputFileName $
`ModuleApi.cs -Namespace VirtoCommerce.Storefront.AutoRestClients.$
ModuleApi -ClientName $_
ModuleApiClient -OutputDirectory VirtoCommerce.Storefront\AutoRestClients -AddCredentials true -UseDateTimeOffset false })
Put into package manager console
Then get the managedModule client within the store front
main settings
ContentConnectionString
Endpoint to the platform
secret key
URLs
SEO friendly
Locale
Category
Product name
short and long URL options within the platform
slug routes
slugrouteservice.cs
can change URLs and what controllers are used
Authentication
Non-real anonymouse user
We know who they are by a GUID
up to user if want to create an account
Does have permissions
flow
user
storefront
API
platform
modules
read and write to the theme
theme is read back to th storefront
Manage secret settings
right click on solution
Manage user secrets
to override appsettings files and have secret ones
Day 4 of training