A simple online ordering system for a restaurant developed by @mskobun and @vernonlim for COMP1044 Databases and Interfaces at University of Nottingham Malaysia.
It uses PHP with Laravel framework for the backend, Svelte with flowbite for the frontend, and intertia.js to pass data between the two.
- Make sure
php,composerand NodeJS +npmare installed. - Change to project directory.
- Run
composer installto install PHP packages. - Run
npm installto install NodeJS packages. - Copy
.env.exampleto.env - Change database settings in
.envto match your setup. Uncomment lines if necessary. - Run
npm run buildto build the frontend. - Run
php artisan optimize. - Set up your HTTP server to point to "/public" as document root.
- If using Apache, ensure
mod_rewriteis enabled.
- Set up DB settings in .env
- Run
php artisan db:migrateand thenphp artisan db:seedto migrate and seed the database respectively. - Run
npm run devto build Svelte files with live reload - Run
php artisan serveto run the Laravel development server.