RAFSoftLab / code-feed

MIT License
1 stars 1 forks source link

Tests

Code-Feed

Feed Idea

Code Feed is a tool that helps teams that are want to use non-blocking pull request reviews.

Running locally

Requirements

  1. PHP 8+
  2. Composer 2.6+
  3. Docker

    1. Build container

    docker compose up -d

    2. Obtain Gemini API key

    When running for the first time, obtain an API key for Google Gemini model and paste it into .env file that was created for you.

    3. Optional - refresh web page automatically

    npm run dev

    When editing the code, it will automatically refresh the web page.

    4. Load repository

    To load a repository from GitHub, run

    docker exec -it code-Feed-web php artisan app:load-git-repository repository_url
    • repository_url: https link such as https://github.com/RAFSoftLab/code-feed-test-repo.git

      Running without docker

      sudo chmod -R 777 storage

      First time to fix the storage permissions.

      php artisan serve

      to run the server.

      npm run dev

      When editing the code, it will automatically refresh the web page. 3 If working with WSL and using SQLite db, Datagrip or intellij won't be able too access the db. Copy it to windows and

      ln -sf /mnt/c/work/database.sqlite database.sqlite

      Running background tasks(importing repositories):

      
      php artisan queue:work --timeout=0
Running the automated repository updates in the background: add the following to cron

License

MIT