You need to know how to develop with Laravel and Livewire, AlpineJS and TailwindCSS. The first 2 are the most important, you can learn the following ones on the go.
You need:
- PHP v8+
- MySQL v8+
- Git v2+
- An IDE for PHP
Configure your php.ini
file to enable the following extensions:
- SQLITE
- PDO MySQL
- Openssl
- Curl
-
Clone the repository and go inside:
git clone https://github.com/samuelroland/galeriz.git cd galeriz
-
Install composer and node packages
composer install npm install
-
Copy environment file and generate the app key
cp .env.example .env php artisan key:generate
Create a database called
galeriz
in your MySQL server, and fill the DB_USERNAME and DB_PASSWORD constants in.env
. -
Create the symbolic link for the public storage
php artisan storage:link
-
Create the database tables
php artisan migrate
-
If you want to develop Galeriz, you can seed the database with testing data
php artisan db:seed
-
Later, if you want to migrate and seed the database
php artisan migrate:fresh --seed
-
You need to compile assets (CSS mostly) with mix with watch mode:
npm run watch
This uses Laravel Mix under the hood.
-
And in another, start the PHP server:
php artisan server
-
You can now open your browser at
localhost:8000
or the displayed adress, and you can login with[email protected]
-password
or you can create a new account.
- You need to compile assets (CSS mostly)
npm run prod
- You can now start an Apache or Nginx server on the public folder to serve your app to the world.