A social website project inspired by Pinterest
and Instagram
.
- Node.js 12.18.2
- Mysql 5.7
- redis-server
- PHP 7.4.8
- php7.4-bcmath php7.4-bz2 php7.4-intl php7.4-gd php7.4-mbstring php7.4-mysql php7.4-zip php7.4-common php7.4-xml
- composer 1.10.9
Make sure you have installed all the dependencies above.
git clone https://github.com/andy94077/sw-project.git
cd sw-project
mysql -u root -e "create database laravel"
./install.sh
You have to change MAIL_USERNAME
, MAIL_PASSWORD
, and MAIL_FROM_ADDRESS
in pinterest-server/.env
to your email and password.
If you want to change the host address, edit these files below:
- Change
SERVER_URL
andFRONTOFFICE_URL
insrc/constants.js
- Set
SERVER_URL
to the same value insrc/constants.js
inbackoffice/src/constants.js
- Set
authHost
to the value ofSERVER_URL
inpinterest-server/laravel-echo-server.json
- Set
APP_URL
to the value ofSERVER_URL
inpinterest-server/.env
npm start
The server will be run at http://localhost:3000.
npm start
The server will be run at http://localhost:3001/backoffice.
cd pinterest-server
php artisan serve --port=8000
The server will be run at http://localhost:8000.
redis-server
The server will be run at http://localhost:6379.
cd pinterest-server
npx laravel-echo-server start
The server will be run at http://localhost:6001.