This is a Next.js application for a Student Eligibility Report Form.
First, install the dependencies:
``bash npm install
yarn install
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
Open http://localhost:3000 with your browser to see the result.
To run the mock API server:
Install json-server globally: npm install -g json-server. json-server --watch db.json --port 3001
The server will run on http://localhost:3001.
To run the tests:
npm test
yarn test
This project uses Jest and React Testing Library for unit testing. To run the tests, follow these steps:
-
Make sure you have all dependencies installed: npm install
-
Run the test command: npm test
This will run all test files with the .test.ts or .test.tsx extension.
- To run tests in watch mode (tests will re-run automatically when files change): npm test -- --watch