Developer introduction
This document is for developers that are new to Litium. It is recommended that you first read the Concepts page to get a general understanding of the platform.
Technologies used
-
Litium CDN powered by Fastly handles all requests when the site has been deployed to Litium cloud.
-
Client side frameworks
-
Litium react accelerator is built with Next.JS and React as a single page application.
-
Litium MVC accelerator is built as a Microsoft .NET MVC on .NET 6, with dynamic parts built with React.
-
Angular is used to build the SPA that is the Litium backoffice.
-
The database used is Microsoft SQL Server.
-
The search engine Litium search is built on Elasticsearch.
-
Redis in-memory data store is used for:
- Distributed cache
- Distributed locks prevent other applications and threads from accessing a section of code that should not have multiple simultaneous executions.
- Service bus
- Session management
- The Redis-task on GitHub has a sample on implementing distributed cache and lock
-
Automapper is used to map data between similar objects, mainly to map data from the general object to MVC ViewModels, example:
// 1. Register mapping:
cfg.CreateMap<PageModel, ArticleViewModel>()
.ForMember(x => x.Title, m => m.MapFromField(PageFieldNameConstants.Title))
.ForMember(x => x.Text, m => m.MapFromField(PageFieldNameConstants.Text))
.ForMember(x => x.Image, m => m.MapFrom<ImageModelResolver>());
// 2. Then use:
var articleViewModel = pageModel.MapTo<ArticleViewModel>();
License
A license is not required to setup a Litium installation on your local computer, but without a license file Litium will limit the number of requests per minute when the site is accessed from a machine other than localhost.
When you deploy to test/stage/prod environments you will need a license-file: