/laravel-chat-crud

Primary LanguagePHPMIT LicenseMIT

PSEUDO-DISCORD

About:

This is a backend project which tries to emulate a discord text channel. You can generate "parties" for and expecific game and users can join and they have a text chat.

Get started 🚀

Write the following commands line to start onces you get download the project:

  • compose install

If you want to have the DB in docker:

  • docker run -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 mysql

You will need a file in the project's root and you must name it .env and delete the file called .envexample

Copy and paste this into .env file and configure with your DB name, port, username, password... :

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:nzdeTIRxmxZS+TGRBJE3SFb0Ihc+PFFu/sK3heP/j6M=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3308
DB_DATABASE=laravel-crud
DB_USERNAME=root
DB_PASSWORD=1234
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"


Remember you will need to run the server with:

  • php artisan serve

For run the migrations:

  • php artisan migrate

If you need to delete the tables and re-run the migrations:

  • php artisan migrate:fresh
  • php artisan config:chache

Remember if you need help with commands:

  • php artisan list

DB diagram 🗃️

DB

CRUD with Postman postman

https://documenter.getpostman.com/view/14551941/TzJuAdMJ
Run in Postman

Technologies used 🛠️

PHP
Laravel
docker
mysql

authors 🧐

@Roo-Git
@Kronapsys