- โ User authentication (signup/login/logout)
- ๐๏ธ Catalog listing
- ๐งพ Cart + order management
- ๐ณ Payment โ shipping โ delivery โ archive
- ๐ฆ JSON-based storage (no DB)
- ๐ Manual order reset for testing
- ๐งฎ NDJSON event logging
| Endpoint | Method | Description |
|---|---|---|
/api/signup |
POST | Create new user (email, password) โ auto login |
/api/login |
POST | Login user โ sets session |
/api/logout |
POST | Logout + clear session + reset order |
/api/me |
GET | Return current session user or null |
Run it locally:
php -S 127.0.0.1:8081-
Add password reset / profile update
-
Swap file storage for SQLite or MySQL
-
Deploy to Apache or Nginx + PHP-FPM
-
Add /api/stats for analytics
