2023-02-14
#frontendmentor #react

This is my first project which using websocket technology, i make many mistakes and learn many new things in this project. This project is not perfect, because you may encounter bugs while using it. Maybe I'll fix it another time






git clone https://github.com/zaarza/rembugan-app.git
cd frontend
npm install
cd backend
npm install
composer install
copy backend/.env-example backend/.env
Configure like this:
frontend/.env
NEXT_PUBLIC_API_URL=http://localhost:8000
backend/.env
DB_HOST=db-rembugan
DB_PORT=3306
DB_DATABASE=rembugan_app
DB_USERNAME=root
DB_PASSWORD=root
PUSHER_APP_ID=websocket
PUSHER_APP_KEY=rembugan
PUSHER_APP_SECRET=rembugan
PUSHER_HOST=rembugan
PUSHER_PORT=6001
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
cd backend/
php artisan key:generate
cd frontend
npm run dev
cd backend
php artisan websocket:serve
cd backend
php artisan serve