Skip to content

TheBSD/poykott

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boycott Israeli Tech

Install the Project

1. Download the binaries for image optimization

if you are in ubuntu

sudo apt-get install jpegoptim
sudo apt-get install optipng
sudo apt-get install pngquant
sudo apt-get install webp

or go to this link for other operating systems.

If you are running this on the server run sudo pecl install excimer for sentry integration. You can know more on sentry docs

2. clone the repo

3. Install dependencies

  • for the backend composer install
  • and for the frontend npm install

You can use other like yarn or pnpm if you prefer

4.Generate the key

run php artisan key:generate

5. Set up the database

  • run composer dump-autoload .
  • run touch database/database.sqlite to create database file
  • run php artisan migrate:fresh --seed
  • run php artisan import:all
  • run npm run dev to run vite

6. run the project

  • for the backend you can use php artisan serve

if you are using valet or herd you can link the site and no need for php artisan serve

  • for the frontend run npm run dev

or yarn dev or pnpm install if you prefer

7. run the queue

  • run php artisan queue:work to enable queues in the system

you can run php artisan queue:listen if you want queue to be interactive with queue related changes

8. if You want real-world data run these commands to import the data

  • run php artisan import:all

This will not give you images because they are heavy

9. if You want to download images remove comments from the following commands from ImportAll command

    //Artisan::call(AttachCompaniesImagesCommand::class);
    //$progressBar->advance();

    //Artisan::call(AttachPeopleImagesCommand::class);
    //$progressBar->advance();

    //Artisan::call(CleanNotesFromImagesUrlCommand::class);
    //$progressBar->advance();

This will download some of the companies and people images to be as close as possible to the online system

Our deployment script

cd /PATH_TO_FOLDER/boycottisraelitech.com
git pull origin $FORGE_SITE_BRANCH

$FORGE_COMPOSER install --no-dev --no-interaction --prefer-dist

( flock -w 10 9 || exit 1
    echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock

if [ -f artisan ]; then
    $FORGE_PHP artisan migrate --force
    $FORGE_PHP artisan optimize:clear
    $FORGE_PHP artisan optimize
    $FORGE_PHP artisan filament:optimize-clear
    $FORGE_PHP artisan filament:optimize
    $FORGE_PHP artisan queue:work --stop-when-empty

    npm ci
    npm run build
fi

How to Contribute

  • go to todo file and pick one of the todo items and push it as a pull request
  • share our links in social media
  • enrich our database with your contributions especially for alternatives