- sudo apt update
- sudo apt install composer
- sudo apt install php-xml
- git clone https://github.com/InsiderPhD/Generic-University.git
- cd Generic-University
- composer update
- cp .env.example .env
mysql:
8. sudo service mysql status
start if needed
9. sudo service mysql start
10. mysql
or sudo mysql -uroot -p
11. CREATE USER 'uni'@'localhost' IDENTIFIED BY 'password';
12. GRANT ALL PRIVILEGES ON * . * TO 'uni'@'localhost';
13. FLUSH PRIVILEGES;
14. CREATE DATABASE 'generic';
15. and finally exit
- vim (edit file) .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=generic
DB_USERNAME=uni
DB_PASSWORD=password
:wq ( in case you didn't know how to quit vim :)
-
php artisan migrate
-
php artisan db:seed
-
php artisan key:generate
-
php artisan serve
enjoy hacking api :)