This is a frontend application built with Next.js that allows teachers and students to input their details into a system. The application also displays a list of teachers and students who have entered their information
- Input and display teacher details
- Input and display student details
- Validation for required fields and age restrictions
- Styling using Tailwind CSS
- Caching/Mocking of data
- Unit tests for components validation
- Node.js (version 16.20.0)
- npm (version 8.19.4)
- React.js
- Tailwind CSS
- JavaScript
- Redux Toolkit
- Typescript
- Next.js
- Clone the repository:
git clone https://github.com/your-username/teacher-student-management.git - Navigate to the project directory:
cd teacher-student-management - Install dependencies:
npm install
- You don't need any configuration to run the project
├── components/ # React components
├── pages/ # Next.js pages
├── api/ # API routes
├── utils/ # Utility functions
├── tests/ # Unit tests
- Start the application:
npm run dev - Open your web browser and navigate to
http://localhost:3000 - Use the application to input and view teacher and student details.
The API is designed to handle the following endpoints:
GET /api/record: Retrieves a list of all teachers or students.POST /api/record: Creates a new teacher or student.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name. - Make your changes and commit them:
git commit -m 'Add some feature'. - Push to the branch:
git push origin feature/your-feature-name. - Submit a pull request.
