git clone https://github.com/sb2g14/soton_3D_print
You need to install one of the following stacks:
WAMP (Windows) -> Windows, Apache, MySQL, PHP
LAMP (Linux) -> Linux, Apache, MySQL, PHP. (You can find it here: https://tecadmin.net/install-laravel-framework-on-ubuntu/)
MAMP (Mac OS) -> Mac OS, Apache, MySQL, PHP. (You can find it here: https://www.mamp.info/en/)
We're currently running ## Apache 2.0, ## PhP 7.1, ## MySql 5.6 and ## Laravel 5.5 so we recommend you to stick to this versions.
mysql -u username -p;
CREATE DATABASE 3dprint_workshop; exit;
mysql -u username -p 3dprint_workshop < dumpfilename.sql
soton_3D_print
directory and open .env.example
file, write the relevant mysql and mail server information and rename it to .env
. Now run following in your terminal:composer update
php artisan key:generate
php artisan serve
Linux error: unable to locate ext-bcmath.
Just type this sudo apt install php7.1-bcmath
in your terminal. Remember to use the correct version of your php. If you are unsure chek it with php -v
.
You need to visit https://www.jetbrains.com/ apply for a student license and then install PhPStorm and DataGrip IDEs to work with PHP and SQL languages.
Go to the soton_3D_print
php artisan serve
copy the link which appeared in the browser.
If you experience any issues try:
composer update
composer dumpautoload
If you still have errors your database might be outdated. Go to 4 and 7 of this installation manual.
sudo apt install npm
npm install less
sudo apt install node-less
you can now compile less to css using
lessc resources/assets/less/app.less > public/css/app.css
The full instruction can be found on the next link, however, several first steps has been done before https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e
So next we present a short instuction what should be done to update the project on server from the github repository
master
and develop
ssh server@3dprint.clients.soton.ac.uk
cd /var/soton_3D_print/
sudo git pull
sudo composer update
sudo composer dumpautoload -o
sudo php artisan config:cache
sudo php artisan route:cache
cd ..
sudo chmod +x sync.sh
sudo ./sync.sh
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
mysqldump -u root -p[root_password] [database_name] < dumpfilename.sql
USE [database_name];
in the beginning.
You can then run
mysql -u root -p < dumpfilename.sql
Do the same but you may encounter issues with ">" and "<". Look for substitutions online. Possibly "-e"
http://3dprint.clients.soton.ac.uk/printers/index
The MIT license.