Welcome to SEL's Documentation .
- Git
- Docker
- Docker-Composer
Enter the command in the folder of your preference:
-
Clone the repository to your folder.
-
Enter the folder that was created:
cd sel
-
Create the Laravel development variables file by copying it from a pre-defined example:
cp .env.example .env
-
Copy and paste according to the database variable settings:
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
MYSQL_ROOT_PASSWORD=
-
Build the Docker image:
docker compose -f ".docker/docker-compose.yml" --env-file=".env" -p sel up -d --build
docker start sel-apache
docker start sel-mariadb
docker exec -it -u sel sel-apache bash
docker exec -it sel-mariadb bash
Remember to run the following commands from the Apache prompt!
-
Install the Laravel facilities with the composer:
composer install
-
Generate the Laravel local application key:
php artisan key:generate
-
Link storage directory:
php artisan storage:link
Copy and paste the following variables into the file .env (if there not exists)
-
Copy and paste as variable settings from the default password of users (default passwords can be changed):
DEFAULT_PASSWORD_ADMIN=
DEFAULT_PASSWORD_NOT_ADMIN=
-
Run the command to generate the database with some information already prepared:
php artisan migrate --seed
-
Install the Passport package for generating the token for User authentication:
php artisan passport:install
-
Delete and re-create the database:
php artisan migrate:fresh
-
Delete and re-create the database, populating the bank with some previously registered information:
php artisan migrate --seed
-
Populate the database with some previously registered information:
php artisan db:seed
-
Give read and write permission for mass storage:
chmod o+w /var/www/html/storage/ -R
chmod -R 775 /var/www/html/storage/