All guides
.NET (ASP.NET Core)
One C# file: you only write how to save an article.
Download virtual-employee-dotnet.zipAdd it to your site
- Copy VirtualEmployee.cs into your web project. ExampleStore.cs keeps pieces as files; replace it with your database.
- Make up a long random key and put it in configuration (VirtualEmployee__Secret).
builder.Services.AddScoped<IVirtualEmployeeStore, ExampleStore>();
var app = builder.Build();
app.MapVirtualEmployee(builder.Configuration["VirtualEmployee:Secret"]!);In your panel
- In your panel, open the employee that writes (articles or news) and go to the website settings.
- Enter your website address (https, the root of the domain) and the same website key as on your site. Press “Make a key for me” if you have none yet.
- Save and press “Write one now” to test. Keep publishing without asking off until you have seen a draft arrive.
Good to know
If your front end is React and the back end is .NET, route /api/ve/ to the back end in your reverse proxy.
The body is Markdown. Render it with a Markdown library that does not allow raw HTML.