Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.66 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.66 KB

chat-bot-anton-schmidt

A simple chat bot to help you pick an insurance type.

Install

Run yarn

Run

Run yarn dev

Build

Run yarn build

Linting

Run yarn lint

Testing

Unit Tests

Run yarn test:unit

E2E Tests

To execute cross browser tests with playwright run: yarn test:e2e
If it is your first time executing tests with playwright, you might need to run yarn playwright install to install Chrome, Firefox, Safari and Edge.

All tests

If playwright browsers are installed
Run yarn test

Possible next features

  • Preserve client side state and selected options upon refresh
  • Use Orval and React Query for leaner handling of requests, loading and error states based on OpenAPI specification
  • Use Orval to generate client code and provide mock data using Mock Service Worker
  • Dockerize application
  • Deploy application (e.g. using Vercel/ AWS Serverless / Terraform / Netlify)
  • CI/CD Pipeline (e.g. using GitHub Actions) to run tests and deploy application
  • Dockerized E2E tests with playwright
  • a11y tests using (e.g. AXE)
  • Visual regression tests with Playwright

The idea behind the example

The project uses Next.js, which is a framework for server-rendered React apps. It includes @mui/material and its peer dependencies, including emotion, the default style engine in MUI v5.