Back to Home
CharlieAtki icon

Multi-Tenant-Cafe-Application

Verified Safe

by CharlieAtki

Overview

A multi-tenant cafe ordering platform integrating AI-powered shopping assistance and business analytics through a microservices architecture.

Installation

Run Command
docker compose up --build

Environment Variables

  • PORT
  • MONGODB_URI
  • JWT_SECRET
  • JWT_REFRESH_SECRET
  • JWT_EXPIRES_IN
  • JWT_REFRESH_EXPIRES_IN
  • FRONTEND_URL
  • AGENT_SERVER_URL
  • VITE_BACKEND_URL
  • VITE_CLOUDINARY_UPLOAD_URL
  • MCP_SERVER_URL
  • OPENAI_API_KEY
  • EXPRESS_BASE_URL

Security Notes

The application employs standard security practices such as JWT-based authentication with refresh tokens, password hashing via bcryptjs, and CORS configuration. Environment variables are used for sensitive data, preventing hardcoding. However, storing JWT tokens in localStorage on the frontend (as implied by `api.js`) is vulnerable to XSS attacks, making `httpOnly` cookies a more secure alternative for refresh tokens. The AI agent's interaction with the backend involves forwarding the user's JWT, relying on the LLM's adherence to instructions not to expose this token. No 'eval' or other directly exploitable dangerous patterns were found.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens2500
Stars0
Forks0
Last Update2025-12-11

Tags

Food OrderingMicroservicesAI AssistantE-commerceBusiness Analytics