Skip to main content

Configuration

Learn how to configure Axiom Genesis for your needs.

Configuration File

Axiom Genesis uses a configuration file to customize its behavior. Create an axiom-genesis.config.js file in your project root:

module.exports = {
projectName: 'my-project',
version: '1.0.0',
environment: process.env.NODE_ENV || 'development',

// Server configuration
server: {
port: 3000,
host: 'localhost',
debug: true
},

// Database configuration
database: {
driver: 'sqlite',
path: './data/db.sqlite'
},

// Logging configuration
logging: {
level: 'info',
format: 'json'
}
};

Environment Variables

You can also use environment variables to configure Axiom Genesis:

export AXIOM_PORT=3000
export AXIOM_ENV=production
npm start

Configuration Options

Server Options

  • port - Port number (default: 3000)
  • host - Host address (default: localhost)
  • debug - Enable debug mode (default: false)

Database Options

  • driver - Database driver to use
  • path - Database path or connection string
  • maxConnections - Maximum concurrent connections

Logging Options

  • level - Log level (debug, info, warn, error)
  • format - Log format (text, json)
  • file - Log file path (optional)

Next Steps

View the API Reference for complete configuration options.