Welcome to NewsAggregatorApp project! This guide will walk you through the steps to get the project up and running on your local environment.
Check https://newsaggregator.app for the live demo.
Before you begin, make sure you have the following software installed:
-
Clone the repository:
git clone https://github.com/shakkurcwb/NewsAggregatorApp
-
Navigate to project repository:
cd NewsAggregatorApp
-
Install PHP dependencies:
composer install
-
Create a copy of the
.env.example
file and rename it to.env
. -
Update the database and other configuration settings in this file.
-
For SQLite, simple use
DB_CONNECTION=sqlite
and create a blank file ondatabase/database.sqlite
. -
For more database engines, please check the Laravel Docs.
-
Run database migrations to set up the database schema:
php artisan migrate
-
(Optional) Seed the database with sample data:
php artisan db:seed
-
Start the development server:
php artisan serve
-
(Optional) Pull the latest news using the console command:
php artisan rss:collect
-
(Optional) Reply to Telegram messages using the console command:
php artisan telegram:handler
-
(Optional) Or run the development task scheduler worker (includes both commands - see more on
app\Console\Kernel.php
):php artisan schedule:work
Now you should be able to access the project by visiting http://localhost:8000 in your web browser.
Make sure to consult the official Laravel documentation for more in-depth information on various aspects of the framework.
If you encounter any issues during the installation process, feel free to reach out to contact me or create an issue.
Happy coding!
This project is licensed under the MIT License.