Skip to content
SFC Development
JavaScript TypeScript HTML Other
Branch: master
Clone or download
paulcarvell Merge pull request #1950 from NMDSdevopsServiceAdm/live
Merge Live into Master branch to aid identifiction of stale branches
Latest commit 17c9e0e Feb 5, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Removed jest from launch Oct 24, 2019
CQCLocationAPICall Removed old scripts and added json dependancy back Nov 14, 2019
e2e Update to tests Oct 24, 2018
resources Renaming dataOwnerAccess to just parentAccess and renaming the "Staff… May 16, 2019
server Merge pull request #1947 from NMDSdevopsServiceAdm/test Jan 31, 2020
service_unavailable feature | correct service unavailable email address (#1220) Aug 8, 2019
src Merge pull request #1947 from NMDSdevopsServiceAdm/test Jan 31, 2020
.editorconfig Update folder structure for build Oct 24, 2018
.gitignore Removed old scripts and added json dependancy back Nov 14, 2019
.htmlhintrc Added HTML and JS hint settings Nov 29, 2019
.jshintrc Added HTML and JS hint settings Nov 29, 2019
.mocharc.json Upgraded to Mocha and Chai to make it more standard with node testing Oct 24, 2019
.prettierrc.yml Added unit tests for location search and location update Jan 8, 2020
.travis.yml
README.md update readme (#1492) Sep 25, 2019
Staticfile yml file changes Sep 17, 2018
angular.json Importing GOV.UK Frontend assets into the project Apr 16, 2019
index.html Added google tag manager scripts (#1417) Sep 30, 2019
index_staging.html Added GTM to all enviroments Oct 2, 2019
index_uat.html Added GTM to all enviroments Oct 2, 2019
karma.conf.js Fixed Karma config on Linux, now uses pupeteer. If it doesn't work yo… Nov 29, 2019
manifest.bluegreen.yml Changes for live branch Oct 8, 2019
manifest.dev.yml quotachanges Dec 2, 2019
manifest.featureGDS.yml changes for GDS environments Apr 25, 2019
manifest.test.yml Update manifest.test.yml Dec 13, 2019
package-lock.json Feature/parent and subsidiaries add a workplace (#1906) Jan 23, 2020
package.json Added unit tests for location search and location update Jan 8, 2020
proxy.js complete the job page Jun 5, 2019
server.js Feature/linking to parent (#1816) Dec 30, 2019
tsconfig.json Updating Imports Feb 19, 2019
tslint.json Allowing variable names to be prefixed with an underscore Aug 23, 2019

README.md

NgSfcV2

This project was generated with Angular CLI version 8.2.3.

Development server

  1. The dist/ folder MUST be present in order to run the front end application. The dist folder is generated via ng build
  2. Run ng dev for a dev server. Navigate to http://localhost:3000/ to view the application

Note:

FE code changes require a manual page refresh to reflect in the browser.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Backend Server

Unfortunately, the backend server code is part of the client project & repo. Until refactoring:

  • npm run build
  • node server or PORT=<p1> node server or nodemon server or PORT=<p1> nodemon server

Database connection parameters can be overridden using environment variables:

  • DB_HOST - hostname or IP address
  • DB_PORT - port number
  • DB_NAME - name of database
  • DB_USER - database username
  • DB_PASS - database password

This launches the backend up on default port 3000 (or P1 of your designation). Open web browser and try: http://localhost:<port>/api/postcodes/<your postcode without spaces>

Accessibility

  1. Ensure all images have a contextual and useful alt tag. If no context is needed, use alt="".
  2. Ensure that content follows semantic markup, for instance using definition lists, labels and fieldsets.
  3. Anchors with target="_blank" require <span class="govuk-visually-hidden"> (opens in a new window)</span> to be placed after the text content and before the closing anchor tag.
  4. All Angular Directives must be wrapped in square brackets [].
  5. Dialogs h1 element should contain the id id="dialogHeading".
  6. Download links must contain a valid href containing the filename.
You can’t perform that action at this time.