This is train tracker application demo that uses React (Vite), TypeScript, Redux, React-Query & Mapbox. For styling, Tailwind.css is used.
- Nvm is recommended for node version management (https://github.com/nvm-sh/nvm):
nvm usein root folder. Node version 20.0+ is recommended if you don't use nvm - Run
npm iand thennpm run devto initialise the application. Folder structure is straight forwarded, pages can be found undersrc/pages, components undersrc/components
- ESLint is used for linting and prettier for formatting. Run
npm run lintfor checking lint & formatting errors. Runnpm run lint:fixto fix lint & formatting errors. - For testing, vi-testing is used. React-testing-library is used for component testing. Run via
npm run test. mswjs is also used for mocking network requests (https://mswjs.io/)
