Git setup instructions Git download page
(I'm sorry)
nvm install v14.18.3
nvm use v14.18.3
nvm alias default v14.18.3
Use the default settings, make a note of the sa password, you will need this for later, you can alternatively create a separate user and use those credentials to connect, these details will need to be added to the shared secrets at the end.
In addition to this also add it to your path in the windows environment variables.
To add a directory to the existing PATH in Windows
- Launch "Control Panel"
- "System"
- "Advanced system settings"
- Switch to "Advanced" tab
- "Environment variables"
- Under "System Variables" (for all users), select "Path"
- "Edit"
- "New"
- C:\Program Files\Microsoft SQL Server\160\DAC\bin
- "Ok"
npm install --global gulp-cli
cd to location you want to pull code down to, eg cd Documents/Source
git clone https://github.com/nhsengland/futurenhs.git
cd futurenhs
git reset --hard origin/main
npm i
cd futurenhs.app
npm i
Save the config from below (Api Secrets) into an apisecrets.json file and fill in all of the details with the relevant connections strings and credentials, make a note of the location for this file and run the following command: cd ..
type .\apisecrets.json | dotnet user-secrets set --project "futurenhs.api/FutureNHS.Api/FutureNHS.Api.csproj"
Save the config from below (Umbraco Api Secrets) into an umbracosecrets.json file and fill in all of the details with the relevant connections strings and credentials, make a note of the location for this file and run the following command:
type .\umbracosecrets.json | dotnet user-secrets set --project "futurenhs.content.api/Umbraco9ContentApi.Umbraco/Umbraco9ContentApi.Umbraco.csproj"
Save the config from below (Web app secrets) into a file called .env.local in /futurenhs.app
cd futurenhs.app
npm run build
cd ..
gulp activate
{
"AzureImageBlobStorage": "UseDevelopmentStorage=true",
"AzureImageBlobStorage:queue": "UseDevelopmentStorage=true",
"AzureImageBlobStorage:blob": "UseDevelopmentStorage=true",
"AzurePlatform:AzureFileBlobStorage:ConnectionString": "<BlobConnectionstringHere>"
"AzurePlatform:AzureFileBlobStorage:PrimaryServiceUrl": "<ServiceUrlHere>",
"AzurePlatform:AzureFileBlobStorage:GeoRedundantServiceUrl": "<ServiceUrlHere>",
"AzurePlatform:AzureFileBlobStorage:ContainerName": "files",
"AzurePlatform:AzureImageBlobStorage:ConnectionString": "<BlobConnectionstringHere>",
"AzurePlatform:AzureImageBlobStorage:PrimaryServiceUrl": "<ServiceUrlHere>",
"AzurePlatform:AzureImageBlobStorage:GeoRedundantServiceUrl": "<ServiceUrlHere>",
"AzurePlatform:AzureImageBlobStorage:ContainerName": "images",
"AzurePlatform:AzureSql:ReadWriteConnectionString": "SqlConnectionStringHere>",
"AzurePlatform:AzureSql:ReadOnlyConnectionString": "<ReadOnlySqlConnectionStringHere>",
"AzureBlobStorage:FilePrimaryConnectionString": "<BlobConnectionstringHere>",
"AzureBlobStorage:ImagePrimaryConnectionString": "<BlobConnectionstringHere>",
"SharedSecrets:WebApplication": "<StrongUniqueStringHere>",
"SharedSecrets:Owner": "FutureNHS",
"GovNotify:ApiKey": "<keyhere>"
}
{
"APPINSIGHTS_CONNECTIONSTRING": "InstrumentationKey=keyhere",
"ConnectionStrings:umbracoDbDSN": "SqlConnectionStringHere>",
"Umbraco:Storage:AzureBlob:Media:ConnectionString": "<BlobConnectionstringHere>",
"Umbraco:Storage:AzureBlob:Media:ContainerName": "content",
"Logging:LogLevel:Default": "Error",
"Logging:LogLevel:Microsoft": "Warning",
"Logging:LogLevel:Microsoft.Hosting.Lifetime": "Information",
"Logging:TableStorageConfiguration:ConnectionString": "<BlobConnectionstringHere>",
"Logging:TableStorageConfiguration:TableName": "Logs"
}
PORT = 5000
APP_URL = http://localhost:$PORT
NEXT_PUBLIC_GTM_KEY
NEXT_PUBLIC_ASSET_PREFIX
NEXT_PUBLIC_API_GATEWAY_BASE_URL = $APP_URL/api/gateway
NEXT_PUBLIC_API_BASE_URL = http://localhost:9999/api
MVC_FORUM_HEALTH_CHECK_URL = http://localhost:8888/api/healthcheck/heartbeat
API_HEALTH_CHECK_URL = http://localhost:9999/health-check
COOKIE_PARSER_SECRET = <StrongUniqueStringHere>
SHAREDSECRETS_APIAPPLICATION = <StrongStringHereFromApiSharedSecret>
NEXTAUTH_URL = $APP_URL
NEXTAUTH_SECRET = <StrongUniqueStringHere>
AZURE_AD_B2C_TENANT_NAME = <B2CTenantName>
AZURE_AD_B2C_CLIENT_ID = <B2CClientIdHere>
AZURE_AD_B2C_CLIENT_SECRET = <B2CClientSecret>
AZURE_AD_B2C_PRIMARY_USER_FLOW = <B2CUserFlow>
APPINSIGHTS_INSTRUMENTATIONKEY = PLACEHOLDER