Quick Start
Install Nid in 5 minutes with Docker.
Prerequisites
- Docker ≥ 24 and Docker Compose ≥ 2.20
- A Google Cloud account with the Gmail API enabled (detailed guide)
- A server or NAS with at least 1 GB of available RAM
1. Clone the Repository
bash
git clone https://github.com/le-nid/nid.git
cd nid2. Configure the Environment
bash
cp .env.example .envEdit the .env file with the minimum required values:
bash
# JWT Secrets — generate random values
JWT_SECRET=$(openssl rand -hex 64)
JWT_REFRESH_SECRET=$(openssl rand -hex 64)
# Google credentials (see Google Cloud guide)
GOOGLE_CLIENT_ID=your_client_id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-your_secret
# First administrator
ADMIN_EMAIL=your@email.com
# Database
POSTGRES_USER=gmailmanager
POSTGRES_PASSWORD=a_strong_password
POSTGRES_DB=gmailmanagerFull Configuration
See the detailed configuration page for all available environment variables (social SSO, quotas, Gmail throttling, etc.).
3. Launch the Application
bash
docker compose up -d4. Verify
bash
# Check all services are up
docker compose ps
# API health check
curl http://localhost:3000/api/auth/configThe application is accessible at http://localhost:3000.
What's Next?
- Create your account and connect Gmail — first steps in the application
- Detailed configuration — all environment variables
- Google Cloud setup — step-by-step guide for OAuth2 credentials
- Production deployment — NAS, reverse proxy, security
- Development environment — hot reload, debug, contributing