Installation - sinahub/WebtoolsAPI GitHub Wiki

Please follow the following steps to install the application:

  • Download & Install PHP 7.2+
  • Download & Instal Composer
  • In your OS's terminal, go to the project folder and run composer install
  • Install laravel/homestead.follow the instructions here
  • in the terminal, run vagrant up
  • Copy .env file from .env.example
  • Find & update the fields below:
    DB_HOST=127.0.0.1
    DB_PORT=33060
    DB_DATABASE=homestead
    DB_USERNAME=homestead
    DB_PASSWORD=secret
  • default port for MySql is 3306 if you sending a query in the container and is 33060 from the host machine.
  • To test the code run composer test
  • To seed database run php artisan migrate --seed

«« Home

API Documentation »»