1.2 KiB
1.2 KiB
Development Setup
This document describes how to set up a development environment for the Email Organizer application.
Prerequisites
- Docker and Docker Compose
- Python 3.10+
Services
The development environment consists of two services:
- PostgreSQL Database: A non-persistent PostgreSQL instance for development
- IMAP Server: A fake IMAP server with predefined users and folders
Setup Commands
To set up the development environment, run:
flask setup-dev
This command will:
- Create necessary directories
- Start PostgreSQL and IMAP services via Docker Compose
- Display connection information
Service Details
PostgreSQL
- Host: localhost
- Port: 5432
- Database: email_organizer_dev
- User: postgres
- Password: password
IMAP Server
- Host: localhost
- Port: 1143
- Users:
- user1@example.com / password1
- user2@example.com / password2
- Folders:
- INBOX
- Pending
- Work
- Personal
- Receipts
- Marketing
- Archived
Environment Configuration
After running flask setup-dev, copy the example environment file:
cp .env.example .env
The default configuration should work with the development services. You can modify the .env file if needed.