Follow these steps to install Chatloka on your server:
git clone chaton.git
cd chaton
composer install
npm install
cp .env.example .env
php artisan key:generate
php artisan migrate --seedConfigure your web server (Nginx or Apache) to point to the public directory.
server {
listen 80;
server_name your-domain.com;
root /var/www/chaton/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
}Start the Laravel queue worker and socket server:
# Start queue worker
php artisan queue:work
# Start socket server (separate terminal)
php artisan socket:serve