Skip to content

How To Build

Muhammad Yafi edited this page Oct 13, 2016 · 2 revisions

How To Build

Requirements

  • PHP >= 5.4.0
  • PostgreSQL
  • Composer (can be found here)

How to install

  1. Clone this repository
  2. Install composer. Ensure you can run it from command prompt with php composer.phar or composer
  3. Run composer install or php composer.phar install
  4. Copy paste .env.example here into .env and modify the following values: DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, and DB_PASSWORD
  5. If something goes wrong, use the application log here (doesn't exist in this repo, but available in your local project folder)
  6. Run php artisan migrate
  7. To fill the database, use php artisan db:seed
  8. To run the server, use php artisan serve
  9. You can access the server at http://localhost:8000/ and start using the API