This repository contains the code for a basic social media site named Project-X. The backend is built with Laravel, and the frontend is developed using React.
Before you begin, make sure you have the following installed on your machine:
- PHP
- Composer
- Node.js
- NPM
-
Clone the repository:
git clone https://github.com/Mostafa-Ben-Git/Project-X.git
-
Navigate to the project directory:
cd project-x
-
Navigate to the BACKEND directory:
cd BACKEND
-
Install PHP dependencies:
composer install
-
Copy the .env.example file to .env:
cp .env.example .env
-
Generate the application key:
php artisan key:generate
-
Set up your database in the .env file:
DB_CONNECTION=mysql DB_HOST=your_database_host DB_PORT=your_database_port DB_DATABASE=your_database_name DB_USERNAME=your_database_username DB_PASSWORD=your_database_password
-
Migrate the database and :
php artisan migrate:fresh --seed
-
Start the server API :
php artisan serve --host=localhost
-
Navigate to the FRONTEND directory:
cd ../FRONTEND
-
Install Node.js dependencies:
npm install
-
Start the development server:
npm run dev
Feel free to contribute to the project by opening issues or submitting pull requests. We welcome any improvements or additional features!
This project is licensed under the MIT License - see the LICENSE file for details.