Contents
Building a page with AI is easy. Building a system a small business depends on, such as inventory, bookings or maintenance requests, is different: staff with different permissions, data that must not be lost, jobs that run every night. The tool writes code fast, but the early decisions decide whether the system still works six months later. This guide goes through those decisions from idea to a system running on hosting. If your project is a small app with a screen or two, start with Build an app with AI.
Before you start
- A tool that works on a whole project, such as Claude Code, Cursor or Codex (The best vibe coding tools).
- Git and a GitHub account.
- Someone on the team who knows how the work is done today (paper or Excel) to test the system.
1. Write the spec before the code
Create SPEC.md in the project root and tell the tool to read it at the start of every session:
# Maintenance request system
## Users and permissions
- Customer: opens a request and follows its status.
- Technician: sees requests assigned to them and changes their status.
- Manager: sees everything, assigns requests, exports a monthly report.
## Data
- Customer (name, phone, address)
- Request (customer, description, status, technician, dates)
- Note on a request (author, text, date)
## Background jobs
- A daily reminder of overdue requests.
## Out of scope for now
- Online payment, mobile app.
The permissions section is what most people forget, and it’s the source of the worst holes: a manager page anyone can open if they know the URL.
2. Choose a boring stack
A boring stack is one that has been widespread for years. That gives you three things: AI tools have seen huge amounts of it so they write it well, hosts run it without special setup, and help is easy to find.
| Stack | Suits | What hosting needs | Ease of hosting |
|---|---|---|---|
| PHP with Laravel and MySQL | Admin panels and internal systems | PHP and MySQL; SSH helps for Composer | Easiest, runs on most hosting |
| Node.js with Express and MySQL | APIs and real-time apps | Running Node.js apps | Easy on developer hosting |
| Python with Django and MySQL | Data-heavy systems and reports | Running Python apps | Easy on developer hosting |
| Several services with Docker | Large teams, distributed systems | A VPS or container platform | Hardest |
Write your choice clearly in SPEC.md, for example: “Laravel with MySQL, no Docker, no Redis, no outside services except email.” Without that, the tool may add Redis, a queue or PostgreSQL because it saw them elsewhere. Laravel options are compared in Laravel hosting.
3. Git with a branch per feature
git checkout -b feature/maintenance-requests
# ... the tool works on the feature ...
git add . && git commit -m "Maintenance requests: create and list"
git checkout main && git merge feature/maintenance-requests
A branch lets you throw away a failed feature without touching main. Ask the tool to write a test for every permission rule: “a technician can’t see other technicians’ requests”.
4. Settings in environment variables
Everything that differs between your computer and the server goes in .env: database details, mail settings, run mode. In Laravel, for example:
APP_ENV=production
APP_DEBUG=false
DB_DATABASE=acct_maint
DB_USERNAME=acct_maint_user
DB_PASSWORD=...
APP_DEBUG=false on the server is essential; otherwise error details, passwords included, are shown to visitors. Details in Environment variables on hosting.
5. The database through migrations
Don’t edit tables by hand in phpMyAdmin. Ask the tool for a migration for every change, so the database can be rebuilt the same way on any server:
php artisan make:migration create_requests_table
php artisan migrate
Before every migration on the live server, take a backup with a phpMyAdmin export or mysqldump.
6. Background jobs
The daily reminder and reports don’t run from a page someone opens. On hosting they run through cron. In Laravel, one line every minute runs the whole schedule:
* * * * * cd /home/USER/maint && /usr/local/bin/php artisan schedule:run >> /dev/null 2>&1
The syntax is explained in Set up cron jobs, and the cron generator writes the schedule for you.
7. Staging, then production
Deploy first to a subdomain such as staging.example.com with its own database, and let staff try it for a week. Then deploy to the main domain, and send every later update the same way. Full deployment steps are in Deploy Laravel and Deploy a full-stack app, with a checklist in Before you launch.
Troubleshooting
- The tool adds services you didn’t ask for: point it back to the stack section of
SPEC.mdand discard the change withgit restore. - A 500 error after deploying: in Laravel it’s usually
storagepermissions or the app key (Laravel 500 after upload). - Tables missing on the server: migrations weren’t run there. Run
php artisan migrate --forceover SSH. - Background jobs don’t run: the cron path isn’t absolute (cron job not running).
On ArabyHost
A Laravel system with MySQL runs on the regular hosting plans (PHP 8.1 to 8.3), and is easier on the AI/Developer plans because they include SSH jailed in CageFS, Git and Composer. Node.js (20 and 24) and Python (3.9 to 3.12) systems run on the developer plans through Phusion Passenger, with background workers kept alive through cron. The database is MySQL/MariaDB, backups run daily with JetBackup, and you can create a subdomain for staging. Deploy from GitHub with cPanel Git Version Control and .cpanel.yml, or from Claude and Cursor through Araby MCP. There is no Docker, no root and no VPS yet, so if your system depends on several containerised services, choose a provider that offers them; the comparison is in Where to host a project you built with AI.
FAQ
What's the difference between an app and a system here?
A system usually has several kinds of users with different permissions, linked data, and jobs that run in the background such as reports and reminders. That makes planning and the database far more important than writing the pages.
Which language should I pick for a system built with AI?
Pick what you can host and what the people who might help you know: PHP with Laravel runs on most hosting, while Node.js or Python with Django need hosting that runs applications. AI tools write all of them well because they're widespread.
Can a company rely on a system built by AI?
Yes, if it's treated like any software: review of sensitive code, tests, backups, and a staging copy before each update. Don't run a system holding financial or personal data without a developer's review.
How long does building a full system take?
It depends on the number of modules. A simple booking system might take days; one with several sections and roles can take weeks even with AI, because testing and fixing details take most of the time.