I'm trying to split-up my application and I'd like to have the CMS separated from the API (so i can have my API working even if the cms is under maintenance).
That's why I'm trying to initialize umbraco within an empty mvc5 project inside which i'll create my web api controllers.
Inside those controllers i'm goind to use umbraco services (and custom services).
Use Umbraco services within external MVC project
Hi everyone!
I'm trying to split-up my application and I'd like to have the CMS separated from the API (so i can have my API working even if the cms is under maintenance).
That's why I'm trying to initialize umbraco within an empty mvc5 project inside which i'll create my web api controllers. Inside those controllers i'm goind to use umbraco services (and custom services).
I tried to use UmbracoSidecar without success.
Does anyone faced the same scenario?
Any help is very appreciated, thank you
S
Hi Stefano
You need "UmbracoCms.Core" package installed to use Umbraco services. Do you want to use the same database connection as Umbraco project?
Thanks,
Alex
Hi Alex! Thank you!
Yes, I must use the same db..
I installed the umbracocms.core but I can't find the correct way to start umbraco. Any piece of code or suggestions about that?
Thank you again! ;)
is working on a reply...