This application is built using Laravel, AlpineJs and Tailwind, providing a modern and responsive user experience. This README will guide you through the setup process and provide an overview of the project structure.
- User authentication (registration, login, logout)
- Anouncements
- News
- Events
- Banners
- Roles & Permissions
Before you begin, ensure you have met the following requirements:
- PHP >= 8.0
- Composer
- Node.js >= 14.x
- npm or yarn
- MySQL or another compatible database
- Git
Follow these steps to set up the project on your local machine:
-
Clone the Repository
Open your terminal and run the following command:
git clone https://github.com/mchahkandi/news.git
-
Navigate to the Project Directory
cd news -
Install PHP Dependencies
Make sure you have Composer installed, then run:
composer install
-
Install JavaScript Dependencies
You can use either npm or yarn. Choose one of the following commands:
Using npm:
npm install
Using yarn:
yarn install
-
Copy the Environment File
Create a copy of the
.env.examplefile:cp .env.example .env
-
Generate Application Key
Run the following command to generate your application key:
php artisan key:generate
-
Database Setup
-
Update your
.envfile with the correct database credentials:DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_database_name DB_USERNAME=your_database_user DB_PASSWORD=your_database_password
-
Create the database specified in the
.envfile.
-
-
Run Migrations and Seed Database
To set up the database tables, run:
php artisan migrate --seed
To start the development server, run:
composer run devThis will start the server at http://localhost:8000. You can access the app in your web browser.
Thank you for checking out the project! If you have any questions, feel free to reach out. Happy coding!

