An open API service indexing awesome lists of open source software.

https://github.com/atomjoy/xenon

Xenon is a Laravel and Vue based blog with multi-guard authentication (CMS).
https://github.com/atomjoy/xenon

laravel-blog laravel-vue-blog php-blog vue-blog vue-blog-admin xenon xenon-blog

Last synced: 28 days ago
JSON representation

Xenon is a Laravel and Vue based blog with multi-guard authentication (CMS).

Awesome Lists containing this project

README

        

# Xenon Blog

Xenon is a Laravel and Vue based blog with multi-guard authentication.

## Run

Config in .env or .env.production and default users in database/seeders.

```sh
# Create storage and public_html links
php artisan storage:link
# DB Tables
php artisan migrate:fresh --seed
# Import mysql data
database/sql/laravel-9.sql
# Compile
npm run build
# Run
php artisan serve
```

## Login (guards)

Default user login details.

```sh
ClientPanel: /login
User: [email protected]
Pass: Password123#

AdminPanel: /admin/login
User: [email protected]
Pass: Password123#
```

## Configs, Component json

```sh
# Json
resources/js/settings

# Seo schema
resources/js/utils/seo

# Lang
resources/js/lang
```

## Mysql table

```sql
-- Tabele
CREATE DATABASE IF NOT EXISTS laravel CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE DATABASE IF NOT EXISTS laravel_testing CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

-- Nie wymagane do testu
GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'toor' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO [email protected] IDENTIFIED BY 'toor' WITH GRANT OPTION;
```

## Production

```sh
# Linki symboliczne
php artisan storage:link

# Clear cache config
php artisan optimize:clear

# Baza danych
php artisan migrate --seed
php artisan migrate:fresh --seed

# Dodaj do cache
php artisan event:cache
php artisan config:cache
php artisan optimize

# Usuń z cache
php artisan event:clear
php artisan cache:clear
php artisan optimize:clear
```

## Compile, Run

```sh
npm run build
php artisan serve
```

## Resource Controller

```sh
php artisan make:model Category -a --resource

Route::resource('categories', CategoryController::class)->except(['create', 'edit']);
```

## Test

```sh
php artisan migrate:fresh --seed

php artisan test --stop-on-failure

php artisan test --filter PermissionsTest --stop-on-failure
```

## TODO

```sh
- Seo meta tags for main pages with json (uncomment, optional)
- Social login (implement, optional)
- Vue locale translations (add, optional)
```

## Screenshots







## Links

```sh
# Icons
https://www.svgrepo.com/collection/kalai-oval-interface-icons
https://www.svgrepo.com/collection/solar-linear-icons
#Images
https://unsplash.com
https://www.nvidia.com
```