Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jekabsilkens/blog-system-concept
Simple blog system using Laravel. Includes: user registration/authentication, CRUD for blog posts, comments section, category assignment and keyword search.
https://github.com/jekabsilkens/blog-system-concept
authentication authorization elequent-orm laravel middleware mvc oop php postgresql solid tailwind
Last synced: 2 days ago
JSON representation
Simple blog system using Laravel. Includes: user registration/authentication, CRUD for blog posts, comments section, category assignment and keyword search.
- Host: GitHub
- URL: https://github.com/jekabsilkens/blog-system-concept
- Owner: JekabsIlkens
- Created: 2024-11-02T13:24:41.000Z (12 days ago)
- Default Branch: master
- Last Pushed: 2024-11-10T23:46:54.000Z (3 days ago)
- Last Synced: 2024-11-11T00:26:56.724Z (3 days ago)
- Topics: authentication, authorization, elequent-orm, laravel, middleware, mvc, oop, php, postgresql, solid, tailwind
- Language: PHP
- Homepage:
- Size: 168 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple 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.gitcd 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`.