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.shYou 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_URLandFRONTOFFICE_URLinsrc/constants.js - Set
SERVER_URLto the same value insrc/constants.jsinbackoffice/src/constants.js - Set
authHostto the value ofSERVER_URLinpinterest-server/laravel-echo-server.json - Set
APP_URLto the value ofSERVER_URLinpinterest-server/.env
npm startThe server will be run at http://localhost:3000.
npm startThe server will be run at http://localhost:3001/backoffice.
cd pinterest-server
php artisan serve --port=8000The server will be run at http://localhost:8000.
redis-serverThe server will be run at http://localhost:6379.
cd pinterest-server
npx laravel-echo-server startThe server will be run at http://localhost:6001.