Internal and Public web service provider of the Department of Computer Engineering
To be updated
You need to install WAMP or XAMP server and run it before following commands. Please make sure you already created a Database and a Database User Account.
// Install PHP dependencies
composer install
// Install Node dependencies (development mode)
npm install
npm run dev
// If you received mmap() error, use this command
php -d memory_limit=-1 /usr/local/bin/composer install
// Update PHP dependencies
composer update
// Prepare the database
php artisan migrate
First you need to copy .env.example
and save as .env
in the root folder, and change the Admin
and User
credentials, Database
configurations.
Next follow the below commands
// Prepare the public link for storage
php artisan storage:link
// Reset the database and seed the data
php artisan migrate:fresh --seed
// Prepare webhook for unit testing
git config --local core.hooksPath .githooks
// Serve PHP web server
php artisan serve
// Serve PHP web server, in a specific IP & port
php artisan serve --host=0.0.0.0 --port=8000
// To work with Vue components, you need to run this in parallel
npm run watch
// Remove dev dependencies
composer install --optimize-autoloader --no-dev
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan down --message="{Message}" --retry=60
php artisan up
// Create Model, Controller and Database Seeder
php artisan make:model {name} --migration --controller --seed
// Create a Email
php artisan make:mail -m
// Commandline interface for Database Operations
php artisan tinker
// Run the unit tests
php artisan test
Verb | URI | Action | Route Name |
---|---|---|---|
GET | /photos/ | index | photos.index |
GET | /photos/create | create | photos.create |
GET | /photos/view/{photo} | show | photos.show |
GET | /photos/edit/{photo} | edit | photos.edit |
GET | /photos/delete/{photo} | delete | photos.delete |
POST | /photos/ | store | photos.store |
PUT | /photos/{photo} | update | photos.update |
DELETE | /photos/{photo} | destroy | photos.destroy |
Thanks to all the contributors who have helped with this project!