It's twitter clone project
- PHP 7.2 or higher (We have used PHP 7.4 for development)
- Composer
- Node (We have used Node 18.18.2 for development)
- Npm (We have used NPM 9.8.1 for development)
- Git
- Clone the repository
- Checkout the
master
branch - Make sure
PHP
,Composer
,Node
andNPM
is installed in system
- Go to the
backend
directory - Run
composer install
to install the dependencies - Make a copy for local environment and setup all configurations
cp .env.example .env
- Need to modify environment for database
- Run the command line for migrate all table
php artisan migrate
- Run the command line for storage directory make publicly
php artisan storage:link
- Go to the
frontend
directory - Run
npm install
to install the dependencies - Need to modify environment for backend server url
frontend/src/env.js
and need to store only base path
- Our solution have two parts
- Backend
- Frontend
- REST Api parts are include
Controllers
,Models
andRoutes
directory
- First of all run the backend server
php artisan serve
- Finally run the frontend server
npm run build
/npm run dev
- I have attached
postman collection
andscreenshot
in root directory
If you have any questions or confusion please email me at kawsar.diu888@gmail.com or open an issue in the repository.