-
Notifications
You must be signed in to change notification settings - Fork 4
Server Setup
- Requirements:
- Visual Studio
- .Net Core 3.1
- Node.js
- Webpack
npm install --save-dev webpack
- Clone respository
- Run
npm installfrom the project directory (where package.json is located).- NOTE: by default, type
cd Moggles
- NOTE: by default, type
- Add the configuration keys in appsettings.json.
- Run
npm run dev-fullfrom the project directory (where package.json is located). - Build for deployment or Run in Debug (F5)
The application needs to be deployed on a web server (for example IIS), built in Release mode.
-
Custom roles (Required) The application uses by default windows authentication (form based authentication is not implemented) with role based authorization. This part can be removed by removing the
ConfigureAuthServicesmethod fromStartupand the authorize policy from theHomeController, resulting in anonymous authentication."CustomRoles": { "Admins": "MY_DOMAIN\myAdminGroup_Or_UserName" }
-
Messaging (Optional)
"Messaging": { "UseMessaging": "true", "Url": "rabbitmq://messageBusUrl", "Username": "user", "Password": "password", "QueueName": "my_moggles_deploy_status_queue" }
If
UseMessagingis set to false (default) the messaging features will not be available. -
Application insights instrumentation key (Optional)
"ApplicationInsights": { "InstrumentationKey": "myInstrumentationKey" }
- Running the unit tests and API tests don't require any additional setup.
- Running the UI tests:
Runnpm installfrom the project directory (where package.json is located).- Mocha tests
Runnpm run testfrom the project directory (where package.json is located). - Jest tests
Runnpm run test-jfrom the project directory (where package.json is located).
- Mocha tests
If InvalidOperationException: No authenticationScheme was specified, and there was no DefaultChallengeScheme found. exception is thrown when running the application: right click on Moggles project -> Properties -> Debug -> check 'Enable Windows Authentication'.
If you get npm errors, check the directory, the commandline MUST be in the directory that contains package.json. You will likely need to type cd Moggles in a default install
If you get node_sass errors in your console such as Error: ENOENT: no such file or directory, scandir [full path here]node_modules\node-sass\vendor, then your OS node.js version and the node version inside Visual Studio, may not be the same. Try:
- Installing latest node.js
- Verifying versions (command line of
node -vand inside Package Manager Console) - Running
node .\node_modules\node-sass\scripts\install.js - Running
npm rebuild node-sass