Welcome to our new docs! Please keep in mind we are still working on making everything is as accurate as possible. Join us on discord and ask us questions if you are unsure.
DezerX Spartan LogoDezerX Spartan
Configuration

Environment Setup

Really easy steps

Environment Configuration

1. Copy Configuration File

First, copy the example configuration file:

cp .env.example .env

2. Configure Environment Variables

Open the .env file in your preferred text editor and update the database configuration:

.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DezerX
DB_USERNAME=root
DB_PASSWORD=your_password_here

3. Install Dependencies

Install Composer packages (for PHP dependencies):

composer install
composer install --no-dev --optimize-autoloader

Install Node.js packages:

Install Node.js dependencies
npm install

Build the frontend assets:

Build assets
npm run build

4. Generate Application Key

Generate a random encryption key for your project. Keep this key secure - it's used to encrypt sensitive data:

Generate app key
php artisan key:generate --force

5. Database Migration

Set up the database tables and seed initial data. Do not exit this process until it completes:

Run migrations
php artisan migrate --seed --force

6. Assign File Permissions

Grant the webserver access to the panel files:

Set permissions
# If using NGINX or Apache (not on CentOS):
chown -R www-data:www-data /var/www/dezerx/*

# If using NGINX on CentOS:
chown -R nginx:nginx /var/www/dezerx/*

# If using Apache on CentOS:
chown -R apache:apache /var/www/dezerx/*