See the live app - https://cool-chatx.vercel.app/
- Node.js 16 or later
Instal the dependencies required for the project
npm i
To start the development server, run next command:
npm run dev
Open http://localhost:5174 to see the result.
You can find source files in /src
folder.
To build production artefacts, run next command:
npm run build
To run unit tests, run next command
npm run test
To include coverage info, run next command
npm run test:coverage
Before running e2e test make sure the app is up and running.
To run e2e tests in headless mode (run tests in terminal), run next command
npm run e2e:headless
To run e2e tests in headed mode (opens up browser window), run next command
npm run e2e:headed
- React - library for building UI components
- TypeScript - for static type checking
- Vitest- A Vite-native testing framework. In challenge, it's said to use
Jest
but since I'm usingVite
as build tool it requires too much effort to makeVite
work withJest
so I went withVitest
. ButVitest
is compatible withJest
api. - Tailwind.css - A utility-first CSS framework
- msw -Mock Service Worker is an API mocking library
- I'm managing
form
state withReact
hooks sinceform
is such a simple. But I'd choosereact-hook-form
+zod
combo to improve validation and performance of form and make code more readable.