My main goal for this project was to practice using Vitest, Testing Library and TanStack Query. It also contains cool features, such as a PWA and caching.
- Caching searched words for 24hours
- PWA
- Font preferences saving to localStorage
- Theme preferences saving to localStorage
- Searching words definitions
- Default theme mode based on the user's
prefers-color-scheme
- TailwindCSS
- React
- Vite
- Vitest
- Testing Library
- TypeScript
- localStorage Web APIs
- Tanstack Query
- Workbox
- Axios
- Dictionary API
- Caching data using TanStack Query
- Testing components that rely on API data
- Mocking rest request with a MSW for testing
- Creating PWA with Workbox
- Theme default value based on the user's system preferences
- Install Node.js
- Navigate to project folder in command line
- Run
npm install
- Run
npm start
- Open project folder in command line
- Run
npm run build