- React
- TypeScript
- Vite
- TanStack Router
- TanStack Query
- Tailwind CSS
- Vitest + Testing Library
- Zod
- React Hook Form
- Prettier & ESlint
- Node.js
- npm
- Clone the repository:
git clone https://github.com/Iamsheye/savannah-test.git
cd savannah-test
- Install all dependencies (both frontend and server):
npm run install:all
- Create a
.env
file in thefrontend
directory with the following variables:
VITE_API_URL=http://localhost:3001
- Start the development server:
npm run dev
The application will be available at:
- Frontend: http://localhost:5173
- Backend: http://localhost:3001
The project uses Vitest and Testing Library for testing. Run the test suite with:
npm run test
For coverage report:
npm run test:cov
Coverage reports will be generated in the coverage
directory.
npm run dev
- Start both frontend and backend serversnpm run dev:auth
- Start both servers with authentication enablednpm run build
- Build both frontend and backendnpm run test
- Run frontend testsnpm run test:cov
- Generate test coverage report