Configuration

RapidGo uses a .env file for configuration. Copy the example file to get started:

cp .env.example .env

Key Settings

Variable Description Default
APP_NAME Application name RapidGo
APP_ENV Environment (development, production, testing) development
APP_PORT HTTP server port 8080
APP_KEY 32-byte encryption key for sessions
DB_DRIVER Database driver (sqlite, postgres, mysql) sqlite
DB_NAME Database name or file path storage/database/app.db

Database

RapidGo supports SQLite, PostgreSQL, and MySQL via GORM. For development, SQLite requires no setup:

DB_DRIVER=sqlite
DB_NAME=storage/database/app.db

For PostgreSQL:

DB_DRIVER=postgres
DB_HOST=localhost
DB_PORT=5432
DB_NAME=myapp_dev
DB_USER=postgres
DB_PASSWORD=secret

Sessions

Sessions are used for CSRF protection and flash messages:

SESSION_DRIVER=cookie
SESSION_LIFETIME=120
SESSION_PATH=/

Available drivers: cookie, db, file, memory, redis.