https://github.com/jekabsilkens/blog-system-concept
Simple blog system | Laravel | PostgreSQL | Tailwind
https://github.com/jekabsilkens/blog-system-concept
authorization elequent-orm laravel middleware php postgresql tailwind
Last synced: 2 months ago
JSON representation
Simple blog system | Laravel | PostgreSQL | Tailwind
- Host: GitHub
- URL: https://github.com/jekabsilkens/blog-system-concept
- Owner: JekabsIlkens
- Created: 2024-11-02T13:24:41.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-15T21:44:18.000Z (over 1 year ago)
- Last Synced: 2025-05-29T09:15:16.615Z (about 1 year ago)
- Topics: authorization, elequent-orm, laravel, middleware, php, postgresql, tailwind
- Language: PHP
- Homepage:
- Size: 229 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Blog System Concept - Laravel v11.30.0
### Ensure you have the following installed:
- PHP (version 8.2 or later)
- Composer (for PHP dependencies)
- Node/npm (for frontend dependencies and asset building)
- MySQL or PostgreSQL (for a local database server)
## Instructions on how to install and run the application
### Clone the repository on your local machine and step into the project directory:
```shell
git clone https://github.com/JekabsIlkens/blog-system-concept.git
cd blog-system-concept
```
### Open .env.example and configure the database credentials to match your local setup:
```shell
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
```
### Make sure you have the following extensions enabled in your `php.ini` file:
```shell
extension=pdo_mysql
extension=pdo_pgsql
```
### Run the setup script to install dependencies and prepare the database:
For Windows systems:
```shell
setup.bat
```
For Mac & Linux systems:
```shell
chmod +x setup.sh
./setup.sh
```
### Launch the local development server:
```shell
php artisan serve
```
Visit http://127.0.0.1:8000/
## What's inside the setup:
It executes all the necessary setup commands in order:
```shell
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.
## Running unit and feature tests:
```shell
php artisan test
```
**Note:** running the tests will refresh the database!
You will need to manually re-seed it with `php artisan db:seed`.
## App showcase: