git clone https://github.com/JekabsIlkens/blog-system-concept.git
cd blog-system-concept
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password
php.ini
file:extension=pdo_mysql
extension=pdo_pgsql
For Windows systems:
setup.bat
For Mac & Linux systems:
chmod +x setup.sh
./setup.sh
php artisan serve
Visit http://127.0.0.1:8000/
It executes all the necessary setup commands in order:
copy .env.example .env # Creates the environment configuration file
composer install # Installs the required PHP dependencies
npm install # Installs the required front-end dependencies
npm run build # Builds the required front-end assets
php artisan key:generate # Generates the application key
php artisan migrate # Runs the database migrations
php artisan db:seed # Seeds the database
If you encounter any issues when running the setup script, execute these commands manually in the specified order.
php artisan test
Note: running the tests will refresh the database!
You will need to manually re-seed it with php artisan db:seed
.