How to create a new LMS platform
follow the following steps:
1. Change the database name in the connection string in the appsettings.josn file in DevNAS.LMS.DbMigrator tier.
- Name related to the new LMS platform.
- Run the DevNAS.LMS.DbMigrator to apply the migrations.
2. Add appsettings files to DevNAS.LMS.Student, DevNAS.LMS.Web tiers.
- Add the required values like:
- Connection string.
- Language.
{
"ConnectionStrings": {
"Default": "value here",
"MongoDefault": "value here",
"AbpAuditLogging": "value here"
},
"StringEncryption": { // add this if the verification by email
"DefaultPassPhrase": "value here"
},
"Settings": {
"Language": "en"
}
}
- Change the launchSettings.json file to the new appsttings.
3. Run the admin portal and set the required settings:
From
Administration > Settings > Identity Management > Claim types
add two claims:- admin_portable_access.
- AppManagment.
From
Administration > Settings > Identity Management > Roles
set the two claims fromActions > Claims
to theadmin
role.
To activate the claims, refresh the page by logging out, then logging in.
- Add the required LMS settings group values:
- From the menu: Administration > Settings > LmsSettingGroup.
- Set the settings correctly especially:
App settings. Theme Settings.
SMS settings if the verification by phone number. ex. theme settings.
Settings maybe need to be added to the database manually:
- LMS.Theme.ThemeNo - LMS.App.Name
- LMS.App.Account.Registration.FirstName
- LMS.App.Account.Registration.SurName
- LMS.Sms.Provider
- LMS.App.Account.SupportedCountriesCode
- LMS.App.Account.InitialcountryCode
Examples: App Name:
INSERT INTO AbpSettings(Id, Name, Value, ProviderName, ProviderKey) VALUES( NEWID(),
'LMS.App.Name',
'The App name', --The paltform name 'T', NULL)
Theme number:
INSERT INTO AbpSettings(Id, Name, Value, ProviderName, ProviderKey) VALUES( NEWID(),
'LMS.Theme.ThemeNo',
'1', --Default Theme: "1", Asas Theme: "2" 'T', NULL)
Don’t forget to add the files to the paths you determined
- Add the platform features:
- From the menu: SaaS > Tenants> Manage host features button.
5. Double-check about Adding these before running the
DevNAS.LMS.Student:
● Add the platform home page in DevNAS.LMS.Student tier >
Pages > Home.
- inject the required service and build the page for customer needs.
● Add the MainNavbarMenuViewComponent in
DevNAS.LMS.StudentTheme > /Themes/Basic/Components/Menu
● Add the Header in DevNAS.LMS.StudentTheme >
/Themes/Basic/Components/Header
● Add the LMSMenuContributorin DevNAS.LMS.Student >
Menus/LMSMenus
- then add it to the ConfigureNavigationServices method in
LMSStudentModule.
● Add the Footer in DevNAS.LMS.StudentTheme >
/Themes/Basic/Components/Footer
● Add the CSS file in DevNAS.LMS.Student >
wwwRoot/ThemeLibrary/css
● Add the icon in DevNAS.LMS.Student >
wwwRoot/ThemeLibrary/img
● Add the logo in DevNAS.LMS.Student >
wwwRoot/ThemeLibrary/img
Add the details of the features