MINIX-PHP
Lightweight social media web application built using PHP, PostgreSQL, and Supabase.
OVERVIEW
MiniX-PHP is a lightweight, fully functional social media platform that allows users to create accounts, share posts, and interact with dynamic content. The project is specifically engineered to demonstrate modern backend development techniques, seamless cloud database integration, and scalable system architecture using PHP and PostgreSQL (via Supabase). It serves as a practical exploration of secure authentication systems, session management, and relational data handling within a web environment.
KEY FEATURES
- ▸ Authentication System: Secure user registration, login operations, and protected session management.
- ▸ Social Feed System: Publish, display, and manage user-generated social posts dynamically.
- ▸ Cloud Database Integration: Real-time storage and retrieval of relational data using Supabase and PostgreSQL.
- ▸ Secure Data Handling: Enforced security protocols for managing passwords, user states, and input validation.
- ▸ Responsive UI: Clean and accessible web interface constructed with HTML, CSS, and JavaScript.
SYSTEM ARCHITECTURE
DATABASE SCHEMA & RELATIONSHIPS
The underlying data architecture utilizes PostgreSQL to maintain relational integrity. Supabase abstracts the infrastructure while allowing direct SQL interactions. One user can create multiple posts, linked via strict foreign key constraints.
- user_id: UUID PRIMARY KEY
- username: VARCHAR (Unique)
- email: VARCHAR
- password: VARCHAR (Encrypted)
- created_at: TIMESTAMP
- post_id: UUID PRIMARY KEY
- user_id: UUID FOREIGN KEY
- content: TEXT
- created_at: TIMESTAMP
INSTALLATION & SETUP
1. Clone the repository:
git clone https://github.com/AAFLY99/MiniX-PHP.git cd MiniX-PHP
2. Environment Configuration:
Create your database credentials and Supabase connection settings to point to your cloud instance.
3. Run the Server:
Deploy the project using a local PHP server or an environment like XAMPP to test functionality.