Getting Started¶
Welcome to AccessALI! This guide will help you set up your development environment and start contributing to the project.
What You'll Learn¶
- System requirements and prerequisites
- How to install and configure AccessALI
- Quick start guides for both Docker and local development
- Verification steps to ensure everything works
Development Approaches¶
AccessALI supports two development approaches:
Docker Setup (Recommended)¶
Best for: - Quick onboarding (< 5 minutes) - Consistent environment across team - Production parity - No local dependencies
See: Docker Setup Guide
Local Setup¶
Best for: - Direct access to Node.js tools - Faster iteration cycles - Debugging with native tools - Working without Docker
See: Local Setup Guide
Prerequisites¶
Before you begin, ensure you have:
Required¶
- Node.js 20 LTS or higher
- pnpm 10.10.0 or higher
- Git for version control
For Docker Setup (Recommended)¶
- Docker Desktop 4.0+ or Docker Engine 20.10+
- Docker Compose 2.0+ (usually included with Docker Desktop)
For Local Setup¶
- PostgreSQL 16 (or Neon DB account)
- Redis 7 (optional, for caching)
Development Tools (Recommended)¶
- VS Code with recommended extensions
- Postman or similar API testing tool
- Database client (Prisma Studio, pgAdmin, or TablePlus)
Quick Reference¶
| Task | Docker | Local |
|---|---|---|
| Start development | pnpm docker:dev |
pnpm dev |
| Run migrations | pnpm docker:db:migrate |
pnpm db:migrate |
| View database | pnpm docker:db:studio |
pnpm db:studio |
| Stop services | pnpm docker:down |
Ctrl+C |
Next Steps¶
- Check Prerequisites
-
Choose your setup:
- Docker Setup (Recommended)
- Local Setup
- Follow the Quick Start Guide
Getting Help¶
If you encounter issues:
- Check the Troubleshooting section
- Review Common Issues
- Ask in the team Slack channel
- Create an issue in GitHub
Troubleshooting¶
Port Already in Use¶
Database Connection Failed¶
# Docker: Check logs
pnpm docker:logs:app
# Docker: Restart database
docker restart accessali-postgres
# Local: Check connection string
echo $DATABASE_URL
Container Won't Start¶
Common Issues¶
Docker Issues¶
Problem: "Cannot connect to Docker daemon"
Solution:
# macOS: Start Docker Desktop
open -a Docker
# Linux: Start Docker service
sudo systemctl start docker
Problem: "Port is already allocated"
Solution:
# Stop conflicting containers
docker ps
docker stop <container_name>
# Or change ports in docker-compose.yml
pnpm Issues¶
Problem: "Command not found: pnpm"
Solution:
# Install pnpm globally
npm install -g pnpm@10.10.0
# Or use Node.js Corepack
corepack enable
corepack prepare pnpm@10.10.0 --activate
Git Issues¶
Problem: "Pre-commit hooks failing"
Solution: