Welcome to the brainyprep.ai technical assessment! This repository contains a NestJS backend with MongoDB and a Next.js frontend with shadcn/ui. Your task is to build the transaction management interface.
Don't use AI tools like ChatGPT, Cursor, etc. - it will fail. This assessment must be completed using your own skills and knowledge.
.
├── backend/ # NestJS backend with MongoDB (fully implemented)
├── frontend/ # Next.js frontend with shadcn/ui (minimal scaffolding)
├── ASSESSMENT.md # Detailed assessment tasks
└── README.md # This file
- Node.js (v18 or higher)
- npm or yarn
- MongoDB (local or MongoDB Atlas)
- Git
- Navigate to the backend directory:
cd backend- Install dependencies:
npm install- Create a
.envfile:
# On Windows (PowerShell):
Copy-Item .env.example .env
# On Mac/Linux:
cp .env.example .env- Update
.envwith your MongoDB connection string:
MONGODB_URI=mongodb://localhost:27017/brainyprep-assessment
# Or use MongoDB Atlas:
# MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/brainyprep-assessment-
Ensure MongoDB is running (local or Atlas)
-
Start the backend server:
npm run start:devThe backend will run on http://localhost:3000
- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- (Optional) Create a
.env.localfile:
# On Windows (PowerShell):
Copy-Item .env.local.example .env.local
# On Mac/Linux:
cp .env.local.example .env.local- Start the development server:
npm run devThe frontend will run on http://localhost:3001
Please refer to ASSESSMENT.md for detailed task descriptions.
Note: No authentication is required! The backend is fully open - you can focus entirely on building the frontend.
The tasks include:
- Transaction list with filtering, sorting, search, and pagination
- Transaction details view and creation form
- Proper TypeScript implementation
- Responsive design and error handling
The backend provides the following endpoints:
GET /api/health- Health checkGET /api/stats- Get transaction statisticsGET /api/transactions- Get all transactionsGET /api/transactions/:id- Get transaction by IDPOST /api/transactions- Create a new transaction
See backend/README.md for detailed API documentation.
- Complete both assessment tasks
- Ensure your code is clean, well-structured, and follows best practices
- Add comments where necessary
- Test your implementation
- Create a brief summary of your approach and any assumptions made
If you have any questions about the assessment, please reach out to maria@brainyprep.ai
Good luck!