This project is a web application built with a Laravel backend, a ReactJS frontend, and a MySQL database. The Laravel server handles API requests, authentication, and data management, while the ReactJS frontend provides a dynamic and responsive user interface.
Ensure you have the following installed on your machine:
- PHP >= 8.3
- Composer
- Node.js >= 12.x
- npm or Yarn
- MySQL
-
Clone the repository:
git clone https://github.com/AzozzALFiras/Tasks-ALSalem.git cd Tasks-ALSalem
-
Navigate to the Laravel project directory:
cd server
-
Install dependencies:
composer install
-
Copy the
.env.example
file to.env
:cp .env.example .env
-
Generate an application key:
php artisan key:generate
-
Set up your database:
- Open the
.env
file and update the database configuration with your MySQL 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
- Open the
-
Run database migrations:
php artisan migrate
-
Navigate to the ReactJS project directory:
cd ../frontend
-
Install dependencies:
npm install # or yarn install
The backend configuration is primarily handled through the .env
file. Ensure all necessary environment variables are set correctly, including database credentials, mail settings, and other service configurations.
The frontend configuration can be managed through environment variables. Create a .env
file in the frontend
directory and add any necessary configurations, such as the API base URL.
Example .env
file for the frontend:
REACT_APP_API_URL=http://localhost:8000/api/v1
REACT_APP_TOKEN=9a427cc86da49dca6cc372a4d2992c91bc943a0f
MIT License
Copyright (c) 2024 AzozzALFiras
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.