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

https://github.com/falconandrea/personal-blog

Blog created with Orchid Laravel + Inertia.js
https://github.com/falconandrea/personal-blog

blog inertia inertiajs laravel laravel-framework orchid-platform php vue vuejs

Last synced: 2 months ago
JSON representation

Blog created with Orchid Laravel + Inertia.js

Awesome Lists containing this project

README

        

# Info about the project

My Personal Blog created with Orchid Laravel (for the backend) and Inertia.js (for the frontend).

[AndreaFalcon.Dev](https://andreafalcon.dev)

## Initial config

Follow the guide here [Start Laravel Project](https://github.com/falconandrea/start-laravel-project/blob/main/README.md)

## How to run (with Sail)

Copy and update .env file

```
APP_NAME=OrchidBlog
DB_CONNECTION=mysql
DB_HOST=mysql
DB_USERNAME=laravel
DB_PASSWORD=password
DOMAIN=mydomain.dev
```

Install PHP and NPM dependencies

```
composer install
npm ci
npm run dev
```

Run Sail and initial commands for artisan (key, storage, migrate db...)

```
sail up -d
sail artisan key:generate
sail artisan storage:link
sail artisan migrate
```

Create admin user

```
sail artisan orchid:admin admin [email protected] password
```

Backend is now up on `http://localhost/admin`.

## For Production

After git clone project, copy `.env.example` file in `.env` and run

```
docker-compose -f docker-compose.prod.yml up -d
```

After containers are run, enter in `blog` container and run

```
composer update
php artisan migrate
php artisan key:generate
php artisan config:cache
php artisan storage:link
npm install
npm run prod
```

## License

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).