Documentation

Everything You Need to Know

Comprehensive guides for users, administrators, and developers.

Quick Installation

01

Database

PostgreSQL 14+ required. Create a database and note your connection URL.

02

Clone & Install

Clone the repository and run npm install to install all dependencies.

03

Configure .env

Copy .env.example to .env and fill in your database URL, secrets, and payment keys.

04

Migrate & Seed

Run npx prisma migrate deploy and npm run seed to set up your database.

05

Build & Deploy

Run npm run build then npm start. Configure Nginx/Apache as a reverse proxy.

# Clone the repository
git clone https://github.com/your-username/linkpay.git
cd linkpay

# Install dependencies
npm install

# Setup environment
cp .env.example .env
# Edit .env with your settings

# Setup database
npx prisma migrate deploy
npm run seed

# Build and start
npm run build
npm start

Environment Variables Reference

VariableRequiredDescription
DATABASE_URLRequiredPostgreSQL connection string
NEXTAUTH_SECRETRequiredRandom secret for session encryption (32+ chars)
NEXTAUTH_URLRequiredYour site's full URL (e.g., https://linkpay.io)
STRIPE_SECRET_KEYOptionalStripe secret key for payment processing
STRIPE_PUBLISHABLE_KEYOptionalStripe publishable key
PAYPAL_CLIENT_IDOptionalPayPal client ID
PAYPAL_CLIENT_SECRETOptionalPayPal client secret
SMTP_HOSTOptionalEmail server hostname
SMTP_USEROptionalSMTP username/email
SMTP_PASSOptionalSMTP password
HCAPTCHA_SECRETOptionalhCaptcha secret for CAPTCHA protection
GEOIP_DB_PATHOptionalPath to MaxMind GeoLite2 database