Skip to content

Installation

Nasir Khan Saikat edited this page Apr 23, 2022 · 8 revisions

Installation Steps

Follow the steps mentioned below to install and run the project.

  1. Clone or download the repository
  2. Go to the project directory and run composer install
  3. Create .env file by copying the .env.example. You may use the command to do that cp .env.example .env
  4. Update the database name and credentials in .env file
  5. Run the command php artisan migrate --seed
  6. Link storage directory: php artisan storage:link
  7. You may create a virtualhost entry to access the application or run php artisan serve from the project root and visit http://127.0.0.1:8000

When the installation has been completed you may access the backend with the following credentials.


User: super@admin.com
Pass: secret

For additional demo data you may use the following command. By using this you can truncate the posts, categories, tags and comments table and insert new demo data. --fresh option will truncate the tables, without this command new set to data will be inserted only.


php artisan starter:insert-demo-data --fresh

After creating the new permissions use the following commands to update cashed permissions.

php artisan cache:forget spatie.permission.cache

Docker and Laravel Sail

This project is configured with Laravel Sail (https://laravel.com/docs/9.x/sail). You can use all the docker functionalities here.

Clone this wiki locally