- Generate TailwindCSS file
npm i -g tailwindcss npx tailwindcss -i ./static/css/input.css -o ./static/css/output.css
- Configure project
Create .env file with content from .env.example file
# MariaDB database credentials DATABASE_HOST="localhost" DATABASE_PORT=3306 DATABASE_USER="root" DATABASE_PASS="12345678" DATABASE_NAME="firma_kurierska" # Debug mode DEBUG=true
Import sql file (/static/schema.sql) to mysql server
- From PHP CLI:
php -S localhost:8080 or D:\Xampp\php\php.exe -S localhost:8080
- Apache configuration It's already handled by .htaccess file
- Nginx configuration is available in nginx.conf file
server { index index.php; location / { try_files $uri @php_root; } location @php_root { fastcgi_pass unix:/run/php-fpm/php-fpm.sock; # or fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; # Redirect everything to index.php fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_param HTTPS off; } }