Git Product home page Git Product logo

laravel-parser-rss-'s Introduction

Установка:

Версия PHP 8.1.

folder заменить на название папки

  1. git clone [email protected]:Div-Man/laravel-parser-rss-.git folder
  2. Перейти в папку с проектом.
  3. composer update
  4. cp .env.example .env
  5. php artisan key:generate
  6. Настроить подключение к БД в .env
  7. php artisan migrate

При необходимости, если будет ошибка Permission denied, изменить доступ к папкам и файлам

  1. sudo chown -R www-data:www-data storage/logs
  2. sudo chown -R www-data:www-data storage/framework/sessions
  3. sudo chown -R www-data:www-data storage/framework
  4. sudo chown -R www-data:www-data storage/framework/cache
  5. sudo chown -R $USER:www-data storage
  6. sudo chown -R $USER:www-data bootstrap/cache
  7. sudo chmod -R 775 storage
  8. sudo chmod -R ugo+rw storage

Добавить ссылку, для отображения изображений

php artisan storage:link

Для парсинга RSS запустить команду:

php artisan app:parsing-news (первый раз у меня парсится 3 минуты)

Если во время выполнения этой команды, будет ошибка Permission denied, то настроить права:

sudo chmod o+w ./storage/ -R

Роут Route::get('news/create', [NewsController::class, 'create']); делает тоже самое.

Роут для отображения новостей http://localhost/news

Лайки и дизлайки добавляются с помощью axios.

Так как тегов в RSS нету, за место них, были взяты категории.

Для парсинга используется пакет Laravel Feed Reader.

Alt text


Alt text Alt text

laravel-parser-rss-'s People

Contributors

div-man avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.