Quick Start Guide¶
A beginner-friendly, step-by-step guide to running TidyFactor-Go locally and deploying your website in under 5 minutes.
⏱️ 5-Minute Quick Setup Overview¶
1. Prerequisites ➜ 2. Start Backend ➜ 3. Start Frontend ➜ 4. Log into Admin ➜ 5. Deploy
(Node.js + PHP) (Port 8000) (Port 3000) (default: change-me) (Zip & Upload)
🛠️ Step 1: Prerequisites¶
Before starting, ensure you have installed:
- Node.js (v18 or higher): Download Node.js
- PHP (v8.1 or higher with SQLite PDO extension enabled): Available on Windows via WAMP / XAMPP / Herd or CLI.
🚀 Step 2: Start the Backend API (PHP Server)¶
- Open your terminal or Command Prompt and navigate to the project directory:
- Navigate into the backend folder:
- Start the built-in PHP server on port
8000:[!NOTE] Keep this terminal window open. The backend API is now running at
http://localhost:8000.
💻 Step 3: Start the Frontend App (React & Vite)¶
- Open a second terminal window in the project root folder (
TidyFactor-Go). - Install frontend dependencies:
- Start the Vite development server:
- Open your browser and visit:
http://localhost:3000 - You will see the live TidyFactor-Go website rendering in English and Arabic!
🔐 Step 4: Access the Admin Control Panel¶
- Navigate to
http://localhost:3000/adminin your browser. - Enter the default administrator credentials:
- Username:
admin - Password:
change-me - Click Log In. You are now inside the split-workspace Admin Control Panel!
✏️ Step 5: Make Your First Content Edit¶
- In the Admin sidebar, click on Content \(\rightarrow\) Home.
- Edit the Headline or Subtitle text field.
- Click Save Changes in the top-right header bar.
- Open
http://localhost:3000in a new tab — your edits are updated instantly!
📦 Step 6: Deploy to Live Production Hosting¶
When you are ready to publish your website to shared hosting, cPanel, or a VPS:
-
In your project root terminal, run:
This compiles assets, checks type safety, and creates a ready-to-deploy zip package indist-release/tidyfactor-go-v1.6.0.zip. -
Upload
tidyfactor-go-v1.6.0.zipto your server'spublic_html/folder via cPanel File Manager or FTP, then right-click and Extract. -
Open
https://yourdomain.com/install/in your browser to run the automated 1-click web installer wizard: -
Enter your Brand Name, new Admin Password, and click Install Website.
-
Security Final Step: Delete the
/installdirectory from your server once completed.
❓ Frequently Asked Questions & Troubleshooting¶
[!TIP] Q: How do I change language between English (LTR) and Arabic (RTL)?
A: Use the language pill switcher (EN/ع) in the top navigation header bar or footer.[!WARNING] Q: What if images don't load when deployed in a subfolder (e.g.,
yourdomain.com/demo/)?
A: TidyFactor-Go dynamically resolves subfolder depths viaresolveApiUrl(). Simply ensure your web server root.htaccessis uploaded cleanly.