Development Setup¶
This guide covers setting up your development environment for contributing to Image Editor.
Prerequisites¶
- Node.js 18.0.0+
- npm 9.0.0+
- Git
- A code editor (VS Code recommended)
Initial Setup¶
-
Fork the repository on GitHub
-
Clone your fork:
-
Add upstream remote:
-
Install dependencies:
Development Workflow¶
Starting Development Server¶
This starts Vite's development server with hot module replacement at http://localhost:5173.
Code Quality Tools¶
The project uses several tools to maintain code quality:
ESLint¶
Prettier¶
TypeScript¶
Pre-commit Hooks¶
The project uses Husky for pre-commit hooks that automatically:
- Run ESLint on staged files
- Format code with Prettier
- Ensure consistent code style
IDE Configuration¶
VS Code¶
Recommended extensions:
- ESLint
- Prettier
- TypeScript and JavaScript Language Features
- Tailwind CSS IntelliSense
Settings are included in the repository under .vscode/.
Troubleshooting¶
Common Issues¶
Port already in use
Node version mismatch
Ensure you're using Node.js 18+:
Consider using nvm to manage Node versions.
Dependency issues
Try removing node_modules and reinstalling: