Setup:
1. Clone the repository
git clone https://github.com/Bellov/blog
2. Configure PostgreSQL database
- Create a database named blog_cms.
Command line:
psql postgres
CREATE DATABASE blog_cms
GRANT ALL PRIVILEGES ON DATABASE blog_cms TO your 'user name';
\q
3. Run the application
- Open the console and cd your project root directory
composer install
php artisan key:generate
- Then open
database.php
and.env
and change username and password as per PGSQL installation.
DB_CONNECTION=pgsql
DB_HOST=hostname
DB_PORT=5432
DB_DATABASE=Your database name
DB_USERNAME=Your database username
DB_PASSWORD=Your database password
php artisan migrate
php artisan db:seed
php artisan serve
password | |
---|---|
[email protected] | password |