Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.05 KB

readme.md

File metadata and controls

38 lines (27 loc) · 1.05 KB

About WikiPoli

WikiPoli is a ...

Installation step

  • Clone the repo.
  • composer install
  • copy .env.example to .env .
  • Add the database details to the .env.
  • php artisan key:generate
  • php artisan config:cache
  • php artisan migrate
  • php artisan serve

For fresh migrations and update

Run the below commands

- composer update
- php artisan migrate:fresh --seed
- php artisan passport:install
- php artisan serve

- composer require spatie/laravel-searchable
- php artisan migrate
- composer require intervention/image

For file permissions

Run the below commands before sudo php artisan serve

sudo chown -R www-data:www-data /var/www/wikipoli.gq/WikiPoli-backend-beta/storage
sudo chown -R www-data:www-data /var/www/wikipoli.gq/WikiPoli-backend-beta/bootstrap/cache
sudo chown -R www-data:www-data /var/www/wikipoli.gq/WikiPoli-backend-beta/public/uploads/avatar
sudo chown -R www-data:www-data /var/www/wikipoli.gq/WikiPoli-backend-beta/public/politician/photos