Skip to content

codeavor/qr-order

Repository files navigation

QR Order ·

Tests Maintainability Test Coverage

Web app that lets you order just by scanning a QR Code.

Demo

  • Use this link to make an order, as a customer,
  • or this link to view all the orders, as an employee.

Installation

  • Clone the project.
  • Install the dependencies: npm install

How to run

  • Start the app: npm start
  • Use this link to login as customer, and this link to login as kitchen.

Other scripts available

  • npm run coverage, with this script you can get the test coverage.
    • It uses: coverage:clean to remove any old coverage files,
    • coverage:integration to run the Cypress tests,
    • coverage:unit to run the unit tests,
    • coverage:merge to merge the coverage reports.

CICD

Every time a pull request opens:

  • project gets tested and has its test coverage report sent to Code Climate using Github Actions (with this script),
  • Code Climate tests the code for Duplication/Complexity/Maintainability issues,
  • Netlify creates a deploy preview.

When a pull request gets merged into master:

  • using this script, a new test coverage report is created and sent to Code Climate,
  • app gets deployed to Netlify.