More and more committees and employers ask for a working link rather than a demo from a student’s laptop. Demoing from localhost on the day depends on one computer and one network, and any small glitch can ruin the presentation. This guide covers choosing the right place for your project, preparing it and deploying it well before the deadline.
Before you start
- Your project’s code in a Git repository, ideally on GitHub.
- The versions you used, from commands like
php -v,node -vandpython3 --version. - A
.sqlexport of the database if the project uses MySQL. - At least a week before the presentation for deployment and testing.
Steps to deploy a graduation project
1. Work out what your project needs
| Project | Where to deploy |
|---|---|
| HTML, CSS and JavaScript, or a built React app | GitHub Pages for free, or shared hosting |
| PHP with MySQL, e.g. a library management system | Shared hosting |
| Laravel | A developer plan with SSH and Composer |
| A Node.js/Express API | A developer plan |
| Flask, Django or FastAPI | A developer plan |
| A Telegram bot | A developer plan with a background worker |
| An AI model that needs a GPU | A cloud GPU service or an API, not web hosting |
If your project is fully static, check the free hosting options first.
2. Prepare the project for production
- Move passwords and API keys into a
.envfile and add it to.gitignoreso it never reaches GitHub. - In Laravel:
APP_ENV=productionandAPP_DEBUG=false. - In Django:
DEBUG = FalseandALLOWED_HOSTS = ["example.com"]. - Replace hard-coded URLs like
http://localhost:3000with an environment variable. - Pin dependencies:
pip freeze > requirements.txtfor Python, and commitpackage-lock.jsonorcomposer.lockwith the code.
3. Export the database
From a terminal on your computer:
mysqldump -u root -p graduation_db > graduation_db.sql
Or in XAMPP’s phpMyAdmin: select the database, click Export, then Go.
4. Pick a suitable domain
A short name like smartlibrary.tech or yourname.dev is easy to put on a slide. Note that browsers force HTTPS on .dev and .app, so the site won’t open on them until an SSL certificate is issued.
5. Create the database and import your data
- In cPanel open Databases » MySQL Database Wizard, create the database and user, and grant ALL PRIVILEGES.
- Open phpMyAdmin, select the new database, click Import and upload the
.sqlfile. - Update your project’s connection settings: the host is usually
localhost, and use the full prefixed names such asmyuser_graduation.
6. Deploy the code
The easiest route is deploying from GitHub as in deploy from GitHub. Then, depending on the project:
# Laravel over SSH
composer install --no-dev --optimize-autoloader
php artisan migrate --force
php artisan storage:link
php artisan config:cache
For framework-specific steps see deploy Laravel, deploy a Node.js app and deploy a Flask app.
7. Test it the way you’ll present it
Open the link on a phone, on a network other than home, and in a private window. Try logging in, signing up and every form, and prepare demo accounts with realistic data so you’re not showing empty tables.
8. Have a backup plan for the day
- Record a short video of the main features.
- Keep a working local copy and a fresh database export.
- Don’t push new changes on the morning of the presentation.
Troubleshooting
- Works locally, 500 error on the server: check the error log under Metrics » Errors. Common causes: a different PHP version, a missing PHP extension, or Laravel folder permissions as in fixing the Laravel 500 error.
SQLSTATE[HY000] [1045] Access denied: wrong username, password or prefix. Details in fixing MySQL error 1045.Table 'xxx' doesn't existthough it does: MySQL on Linux treats table names as case-sensitive, soUsersisn’tusers.- Uploaded images don’t show: in Laravel run
php artisan storage:link; otherwise check capitalization in paths. ModuleNotFoundErrorin Python: install packages inside the app’s virtual environment withpip install -r requirements.txt.- The Node.js app doesn’t respond: listen on
process.env.PORTrather than a fixed port.
On ArabyHost
PHP and MySQL projects run on ArabyHost shared hosting with PHP 8.1-8.3 and MySQL/MariaDB, without SSH. Laravel, Node.js and Python projects and bots fit the AI/Developer plans: SSH jailed in CageFS, Node.js 20 and 24, Python 3.9-3.12, Git, Composer, apps running through Phusion Passenger, and background workers kept alive with cron. You can deploy from GitHub with Git Version Control and .cpanel.yml, run Claude Code or Codex over SSH, and let the Araby AI assistant explain errors in your logs. SSL is free and automatic, and extensions such as .dev, .tech, .me and .site can be registered from the panel. You pay by card, and in Egypt also with mobile wallets, InstaPay and Vodafone Cash.
FAQ
Is demoing from localhost enough on presentation day?
It can work, but it depends on one laptop and one network. A live link lets the committee open the project from any device and proves it runs in a real environment, so keep both.
My project works on XAMPP but not on the hosting. Why?
The usual causes are a different PHP version, wrong database connection details, or capitalization in file and table names, because Linux is case-sensitive and Windows isn't.
Do I need my own domain for a graduation project?
Not strictly, but it looks professional and stays on your CV. Extensions like .dev, .tech and .me suit student projects and portfolios.