joeaudette / cloudscribe.StarterKits

Deprecated - see below
Apache License 2.0
53 stars 21 forks source link

Running It on Mac #21

Closed abomadi closed 7 years ago

abomadi commented 7 years ago

Hi, im trying to run this project on mac everything builds correctly however when i open the destination url i receive the following.


Project WebApp (.NETCoreApp,Version=v1.1) will be compiled because inputs were modified
Compiling WebApp for .NETCoreApp,Version=v1.1

Compilation succeeded.
    0 Warning(s)
    0 Error(s)

Time elapsed 00:00:02.0837847

info: Microsoft.Extensions.DependencyInjection.DataProtectionServices[0]
      User profile is available. Using '/Users/abdallahmadi/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at re
st.
Hosting environment: Production
Content root path: /Users/test/saasPreview/cloudscribe.StarterKits/SimpleContent-cloudscribecore-nodb/src/WebApp
Now listening on: http://localhost:5000
dbug: SaasKit.Multitenancy.MemoryCacheTenantResolverBase[0]
      Folder List retrieved from cache with key "folderList".
dbug: SaasKit.Multitenancy.MemoryCacheTenantResolverBase[0]
      TenantContext:42eb787d-9850-4ffb-ab4e-8126a1cc21e8 resolved. Caching with keys "root, f83067b4-919d-4910-acd1-4b3b1c210ecf".
dbug: SaasKit.Multitenancy.Internal.TenantResolutionMiddleware[0]
      TenantContext Resolved. Adding to HttpContext.
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
info: Microsoft.AspNetCore.Mvc.Internal.RedirectResultExecutor[1]
      Executing RedirectResult, redirecting to https://localhost/.
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action cloudscribe.SimpleContent.Web.Controllers.PageController.Index (cloudscribe.SimpleContent.Web) in 33.0637ms
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 899.6685ms 302 
abomadi commented 7 years ago

UPDATE: removed RequireHttpsAttribute filter on statrup and it did work, it looks SSL issue on mac.

Thanks

joeaudette commented 7 years ago

I'm pretty sure VS 2015 on windows would create the ssl cert for you automatically, but yeah on mac probably need to comment that out in startup

abomadi commented 7 years ago

I am currently having a look into your project, it looks awesome, it would be nice to have some features on the road map, maybe we can contribute.

joeaudette commented 7 years ago

it supports localization currently, I need to document how to do it, I just finished a client project with 2 tenants each using a different default language

I plan to evolve it some but trying to keep it very simple not to make it an enterprise cms, hence the name SimpleContent. If you want something where you define content types I would suggest take a look at orchard2. all the flexibility for that kind of thing also adds complexity

abomadi commented 7 years ago

Just Amazing ..., looking forward for documentation, actually im looking for something to be used by an enterprise project. and this is almost covering most of what i am looking for, other modules could be built and plugged in.

joeaudette commented 7 years ago

I'll give a quick tip on how to do the localization.

use cloudscribe.Web.Localization - read the readme for its purpose and rationale Create a folder in your main web app "GlobaleResources" to put the resx files ** You can create CloudscribeCore.xx.resx and SimpleContent.xx.resx and put them in that folder where xx is your language code There is an English file for cloudscribeCore here that you can copy to translate, I need to create one for SimpleContent but you can create the file and add any text you see in the SimpleContent UI as the key and translate.

joeaudette commented 7 years ago

if you do create any translations please contribute them to the corresponding projects

abomadi commented 7 years ago

Great!, i will have a look and try to create something for SC as a poc