Skip to content

KraoESPfan1n/Messaging-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Message Dev Workspace

This repo contains:

  • api/ PHP REST API (Slim)
  • ws/ Bun + ws realtime gateway
  • web/ React testing UI
  • db/ MySQL schema
  • scripts/ GC worker for attachments

Quick start (local)

  1. Start MySQL/Redis/MinIO:
docker compose up -d
  1. Install dependencies:
cd api && composer install
cd ../ws && bun install
cd ../web && npm install
  1. Copy env files:
cp api/.env.example api/.env
cp ws/.env.example ws/.env
cp web/.env.example web/.env
  1. Run all services with pm2:
pm2 start pm2.config.cjs
pm2 logs

Notes

  • Email verification is skipped by default: SKIP_EMAIL_VERIFICATION=true.
  • Turnstile is still required on register/login. Use dev-pass for local bypass.
  • Attachments are stored locally in api/storage.
  • Run GC for expired attachments:
php scripts/gc_attachments.php

About

Monorepo público para una API de mensajería: REST API en Slim (PHP), gateway realtime con Bun/ws, UI de pruebas en React, esquema MySQL y scripts de mantenimiento.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors