Prerequisites
Before you begin, ensure you have the following installed:- Node.js: Version 18 or higher
- npm: Version 6 or higher
- Git: For cloning the repository
Getting Started
Install Dependencies
Install all required npm packages:This will install all dependencies listed in
package.json, including:- Core libraries: React, Vite, TypeScript
- Accord Project packages: Concerto, Template Engine, Markdown Transform
- UI components: Ant Design, Monaco Editor
- Testing tools: Vitest, Playwright, Testing Library
Available Scripts
The project includes several npm scripts for development:Development
Building
--max-old-space-size=8192).
Code Quality
- Unused disable directives
- Type safety issues
- React hooks best practices
- Maximum warnings set to 0
Testing
Staying Up to Date
Keep your fork synchronized with the upstream repository:Development Environment
Editor Setup
We recommend using an editor with TypeScript support:- VS Code: Install the ESLint and TypeScript extensions
- WebStorm: Built-in TypeScript and ESLint support
Environment Configuration
The project uses:- Vite as the build tool and dev server
- TypeScript with strict type checking enabled
- ESLint for code linting
- Vitest for unit testing (with jsdom environment)
- Playwright for end-to-end testing
Troubleshooting
Port Already in Use
If port 5173 is already in use, Vite will automatically try the next available port. Check the console output for the actual URL.Module Resolution Issues
If you encounter module resolution errors:Memory Issues During Build
The build script already includes increased memory allocation. If you still encounter issues:Next Steps
Project Architecture
Learn about the codebase structure and key components
Testing Guide
Understand how to write and run tests