Frontend application for the Document Management System built with Next.js 14.
- Next.js 14
- TypeScript
- Styled Components
- React Query
- Vitest for testing
- ESLint + Prettier for code quality
- Node.js 20.x
- pnpm 8.15.4+
Copy .env.example to .env.local:
cp .env.example .env.local# Install dependencies
pnpm install
# Start development server
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
# Run linting
pnpm lint
# Fix linting issues
pnpm lint:fix
# Format code
pnpm format# Run tests
pnpm test
# Run tests in watch mode
pnpm test:watch
# Run tests with coverage
pnpm test:coverageThe system uses a mock file upload process:
- Click the "Upload Files" button in the interface
- When you select files from your computer:
- The system will NOT upload your actual files
- Instead, it will generate random mock documents
- These mock documents will be saved to the database
- Each document will have a randomly generated name and type
Note: This is a demo feature that simulates file upload without actually processing real files.
Creating new folders:
- Click the "New Folder" button
- Enter a name for your folder in the input field
- Click "Create" to save
- The new folder will be:
- Created in the current location
- Saved to the database
- Immediately visible in the interface
Folder features:
- Create folders at any level in the hierarchy
- View folder contents
- Navigate through folder structure
The system supports a hierarchical structure:
- Root level folders and files
- Nested subfolders