Overview The PaTHos Virtual Platform is a full-stack web application that provides a modular system for executing functions with input validation and result tracking. It consists of a React frontend and Node.js/Express backend, with features including user authentication, license validation, and execution history.
Quick Execution Execute functions with real-time feedback and validation
History Tracking Maintain detailed execution history and performance metrics
Secure Access JWT authentication and license validation
System Architecture Backend Components PaTHos Controller Manages module registration, execution, and history tracking
API Routes RESTful endpoints for authentication and PaTHos operations
Middleware Authentication and license validation
Frontend Components PaTHos Interface Main user interface for function execution
Authentication Components Login and registration forms
API Reference Authentication Endpoints POST /api/auth/register { "username": "string", "password": "string" } POST /api/auth/login { "username": "string", "password": "string" } PaTHos Endpoints POST /api/pathos/execute { "functionName": "string", "input": "any", "expectedOutput": "any" // optional } GET /api/pathos/modules Returns list of available modules
Security Features Authentication • Password hashing with bcrypt • JWT session management • Protected endpoints License Validation • File-based license storage • Header-based validation • Access control Error Handling • Generic error messages • Server-side validation • Input sanitization Setup Guide Installation
cd backend npm install
cd frontend npm install Environment Configuration MONGO_URI=mongodb://localhost:27017/pathos JWT_SECRET=your-secret-key PORT=5000 NODE_ENV=development Running the Application
cd backend npm run dev
cd frontend npm start