Developer Setup Guide
Developer Setup Guide
Prerequisites
Before setting up the development environment, ensure you have the following installed:
- Node.js (version 18 or higher)
- npm or yarn
- Git
- Docker (optional, for local development)
- VS Code or preferred IDE
Getting Started
1. Clone the Repository
git clone https://github.com/your-org/learnille.gitcd learnille2. Install Dependencies
# Install root dependenciesnpm install
# Install server dependenciescd servernpm install
# Install client dependenciescd ../clientnpm install3. Environment Setup
Create environment files:
# Copy environment templatescp server/.env.example server/.envcp client/.env.example client/.envUpdate the .env files with your local configuration.
4. Database Setup
# Start database (if using Docker)docker-compose up -d
# Run migrationscd servernpm run migration:run5. Start Development Servers
# Start servercd servernpm run start:dev
# Start client (in new terminal)cd clientnpm run devDevelopment Workflow
Running Tests
# Run all testsnpm test
# Run tests in watch modenpm run test:watch
# Run e2e testsnpm run test:e2eCode Quality
# Run linternpm run lint
# Fix linting issuesnpm run lint:fix
# Run type checkingnpm run typecheckIDE Configuration
VS Code Extensions
- TypeScript and JavaScript Language Features
- Prettier
- ESLint
- GitLens
- Docker (if using containers)
Settings
Add to your VS Code settings:
{ "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "typescript.preferences.importModuleSpecifier": "relative"}Troubleshooting
Common Issues
- Port conflicts: Change ports in
.envfiles - Database connection: Ensure Docker is running
- Dependencies: Clear node_modules and reinstall
- Permissions: Check file permissions for scripts
Getting Help
- Check existing issues on GitHub
- Review documentation in
/docs - Contact the development team
Next Steps
- Read the coding standards
- Review the version control policy
- Familiarize yourself with the project structure
- Start with a small feature or bug fix