Skip to content

TechnologyEnhancedLearning/LearningHub.Nhs.WebUI.Forked

 
 

Repository files navigation

Introduction

This is the official open-source repository for the Learning Hub platform.

The Learning Hub is the national digital learning platform providing easy access to a wide range of educational resources and support for the health and care workforce and educators.

The Learning Hub is provided and supported by the Technology Enhanced Learning Platforms team at NHS England.

Getting Started

Required installs

Project dependencies

To run the code, you will also need to clone and build the Learning Hub User API repository

You will need a development copy of the Learning Hub SQL database - to obtain this, please contact support (see Contribute section below)

Getting the code

Clone the repository from GitHub:

git clone [email protected]:TechnologyEnhancedLearning/LearningHub.Nhs.WebUI.git

You should now be able to open the solution in your IDE by finding and opening the LearningHub.Nhs.WebUI.sln file.

Build the solution

Prerequisites

These instructions assume that you have already followed the Build and Test instructions for the Learning Hub User API repository. Specifically, you have already:

  • Created a Truested self-signed certificate
  • Configured Learning Hub development URLs to use this certificate in IIS
  • Added the development URLs to the Windows hosts files
  • Set up the Learning Hub and elfh Hub databases and run necessary migrations
  • Created a user account for login
  • Added the NuGet package source to Visual Studio
  • Built and run the User API application

Compile Sass and TypeScript files using Yarn

  1. Right click LearningHub.Nhs.WebUI/LearningHub.Nhs.WebUI in the solution explorer and choose 'Open in Terminal'
  2. Run npm clean-install
  3. Run npm cache clean --force
  4. Run npm install
  5. Run npm run dev (after the first successful build, this will be the only command required)

Or, for better performance, use Yarn:

  1. Run yarn install
  2. Run yarn run watch

NOTE: If you run into any errors, using a different version of node may help. It is best to use nvm - Node Version Manager - to do this.

Repeat the above for the LearningHub.Nhs.AdminUI project.

Configure App Settings

Add appsettings.Development.json files to the following projects:

  • LearningHub.Nhs.WebUI
  • LearningHub.Nhs.Api
  • LearningHub.Nhs.AdminUI Modify settings as appropriate for your environment.

If you are an official contributor (see below) working appsettings.Development.json will be provided by the service team.

Configure Local IIS profile

Create a Local IIS launch profile for the following projects:

  • LearningHub.Nhs.WebUI
  • LearningHub.Nhs.Api
  • LearningHub.Nhs.AdminUI
  1. From the launch drop down choose Debug Properties
  2. Create a New profile
  3. Choose IIS from the drop-down and name the profile IIS Local
  4. Add the environment name to Environment variables: ASPNETCORE_ENVIRONMENT=Development
  5. Check Launch browser if appropriate (WebUI, AdminUI)
  6. Set the App URL. Suggested URLs are as follows:
  7. Tick the checkbox for Enable Anonymous Authentication.

Rebuild and run

  1. Rebuild the solution
  2. Set LearningHub.Nhs.WebUI as the startup Project
  3. Start debugging.

Contribute

If you are interested in contributing to the Learning Hub, please contact [email protected].

About

The NHS England TEL Learning Hub platform web application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 36.9%
  • JavaScript 27.4%
  • Vue 10.2%
  • HTML 7.5%
  • CSS 7.4%
  • TSQL 5.9%
  • Other 4.7%