Skip to content
No description, website, or topics provided.
TypeScript JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

BOSA Accessiblity Check Server

Tested with Node.js 6. Built using angular CLI v1.2.1.

To install dependencies, run npm install in the root directory, then run npm install in the server directory as well.

Directory structure

  • See server/ for the Node.js-based server files.
  • See src/ for the Angular-based front-end.


  • Express.js for the back-end server.
  • for real-time communication.
  • Angular as a front-end framework.
  • Angular Material for Material Design components.
  • Pa11y (which uses HTML_CodeSniffer and PhantomJS) for the accessibility sniffs.
  • Node-simplecrawler for crawling.

Development server

  • Copy server/config.example.js to server/config.js.
  • Navigate to the server directory and run node bin/www to start the back-end server.
  • Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.


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

  • Make sure the back-end server is running prior to running the tests (see instructions under "Development server")
  • Run ng test to execute the unit tests via Karma.
  • Run npm test in server/ to execute the server unit tests.

Running end-to-end tests

Run ng e2e --serve=false to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Running a server on a remote machine

  • Copy server/config.example.js to server/config.js. Then update server/config.js to contain the URL of the HTMLCS library (used by the frontend for translating message codes received by the backend to the relevant human-readable message).
  • Update src/app/config.ts to contain the URL of the backend server.
  • Run ng serve --public HOSTNAME --host PUBLICIP to serve up the front-end.
  • Navigate to the server directory and run node bin/www to start the back-end server.
You can’t perform that action at this time.