Skip to content

mandrasch/pa11y-nuxt

Repository files navigation

pa11y-nuxt

👨‍🔧 Work in progress! 👨‍🔧

Integrate pa11y as serverMiddleware in NuxtJS.

Demo: https://pa11y-nuxt.onrender.com/ (Runs on free plan on render, can be offline if my account limit is reached)

Checkout https://github.com/mandrasch/pa11y-express as well.

Host on render.com

Create a new WebService on render.com and configure the project as seen here:

  1. Select GitHub repository: Screenshot render.com Select a Github Repository

  2. Configure build and start command: Screenshot render.com Configure build and start command

  3. Done! Your project is deployed and has a public URL: Screenshot render.com Dashboard of project with public url

See https://render.com/docs/deploy-node-express-app for more information.

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

For detailed explanation on how things work, check out the NuxtJS documentation.