Skip to content

This is project is the backend API server for the mzima-a11y-checker project

Notifications You must be signed in to change notification settings

MugoBrian/a11y-checker-api

Repository files navigation

a11y-checker-api

This project is the backend API server for the mzima-a11y-checker project

Table of Contents

Overview

This project serves as the foundational backend API server, forming a crucial component of the mzima-a11y-checker initiative. Its role is pivotal in facilitating the seamless functionality and operations of the mzima-a11y-checker project. Through this backend API server, data processing, communication, and other essential operations are orchestrated, enabling the overall effectiveness of the mzima-a11y-checker project's objectives.

Installation

Instructions on how to install your project.

Requirements

Node version > 18.x.x

To run the a11y-checker-api locally, follow these steps:

Clone the repository:

git clone https://github.com/MugoBrian/a11y-checker-api.git

Navigate to the server directory:

cd a11y-checker-api

Install dependencies:

npm install

Start the server:

npm run serve

Running

Open the browser and navigate to : http://localhost:3000

Usage

Examples and instructions on how to use your project.

To execute various API Endpoints, you can utilize your preferred API client, such as Thunder Client or Postman.

Here are the available API Endpoints along with their associated HTTP methods:

POST METHODS:

  1. The /url endpoint is designed to perform accessibility checks for website URLs.
  2. The /code endpoint is utilized for carrying out accessibility checks on code.

You can initiate these checks using different accessibility testing tools as follows:

  • Running With Pa11y:

    • Website URL: http://localhost:3000/api/accessibility-check/pa11y/url
    • Code: http://localhost:3000/api/accessibility-check/pa11y/code
  • Running With IBM Accessibility Checker:

    • Website URL: http://localhost:3000/api/accessibility-check/ibm/url
    • Code: http://localhost:3000/api/accessibility-check/ibm/code
  • Running With Axe Dev Core:

    • Website URL: http://localhost:3000/api/accessibility-check/axe/url
    • Code: http://localhost:3000/api/accessibility-check/axe/code
  • Parameters:

    • Url { "userInput":"https://example.com/" }
    • Code { "userInput":"<img src='example.png' />" }

Feel free to choose the appropriate endpoint and testing tool based on your specific needs, and initiate the checks using your preferred API client, such as Thunder Client or Postman.

Features

List of key features:

  1. It has the capability to conduct accessibility checks on both HTML code and website URLs.
  2. Additionally, it offers support for executing accessibility assessments using prominent libraries such as pa11y, axe-dev core, and the IBM Accessibility Checker. This functionality empowers the project to comprehensively evaluate and ensure accessibility standards across different dimensions.

Support and Contact

How users can seek support or contact you for assistance. Incase of any issues raise it in the Github Issues tab for now and I'll get back to you ASAP.

Acknowledgments

Credits to pa11y, axe-dev core and IBM Accessibility Checker libraries.

About

This is project is the backend API server for the mzima-a11y-checker project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published