Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 920 Bytes

KaliSetup.md

File metadata and controls

44 lines (34 loc) · 920 Bytes

Manual Instalation (on Kali Linux)

  1. sudo apt update
  2. sudo apt install composer
  3. sudo apt install php-xml
  4. git clone https://github.com/InsiderPhD/Generic-University.git
  5. cd Generic-University
  6. composer update
  7. 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

  1. 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 :)

  1. php artisan migrate

  2. php artisan db:seed

  3. php artisan key:generate

  4. php artisan serve

  5. open http://127.0.0.1:8000/

enjoy hacking api :)