- Ask the team member to add you to the database.
- Register on the website
- Join GitHub repository (please ask a member of the team to send you an invitation).
- Run
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.
- Setup the database. Ask a member of the team (Svitlana or Andrew) for the latest dump file containing the database.
- Enter MySql:
mysql -u username -p;
- Create the database:
CREATE DATABASE 3dprint_workshop; exit;
- Write tables from your dump file:
mysql -u username -p 3dprint_workshop < dumpfilename.sql
- Go to the
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
- If everything is successful the link to your local host will appear in the terminal window. Normally it's http://127.0.0.1:8000 If you experience any issues please contact us.
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
- Merge branches
master
anddevelop
ssh [email protected]
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
- Check https://3dprint.clients.soton.ac.uk/ if everything works.
- Dump lates database with mysql dump
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
- Feed the dump file into the working database
mysqldump -u root -p[root_password] [database_name] < dumpfilename.sql
- Alternatively, edit the sql file and add
USE [database_name];
in the beginning. You can then runmysql -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
- Laravel 5.5 as the PHP framework (https://laravel.com/docs/5.6)
- Bootstrap 3 (https://getbootstrap.com/docs/3.3/)
- jQuery for easy JavaScript (http://jquery.com/)
- Carbon for PHP DateTime variables (http://carbon.nesbot.com/docs/)
- Charts by ConsoleTV for easily creating charts in Laravel (https://github.com/ConsoleTVs/Charts/tree/5.4.0/docs/5)
- Font-Awesome for icons (https://fontawesome.com/v4.7.0/icons/)
- Bootstrap 3 Datepicker for date-time picker (http://eonasdan.github.io/bootstrap-datetimepicker/)
- University Colours (https://generic.wordpress.soton.ac.uk/brand/category/logo-and-templates/office-templates/%22http:/www.southampton.ac.uk/brand/category/colour/)
- Material Design Colours (https://material.io/color/#!/?view.left=1&view.right=1&primary.color=315765&secondary.color=0097c2)
- Remember to fulfil all license requirements for the pulled packages ASAP...
- Add Laravel installation instructions/ link to this readme so future programmers can set up their own environment
The MIT license.