Installation

The GreenLight Development Kit is a full Laravel project including everything you need to start working on GreenLight. Therefore the installation process of the project is similar to what any new Laravel project would have.

For this version of GreenLight, make sure you check the 1.x branch out after cloning the repository.

Setup

  1. Clone the Devkit project from GitHub: https://github.com/greenroomgit/greenlight-devkit.git
  2. Set write permissions for the following directories: storage & bootstrap/cache
  3. Create an empty database
  4. Copy .env.example to .env and set all the database-related parameters. Also, consider editing the SITE parameter
  5. Run composer install (needs composer to be installed)
  6. Run php artisan key:generate from command line (project root, generates a key for the .env file)
  7. Run php artisan migrate --seed (project root, creates tables and foreign connections and imports starting seed data)
  8. Run composer dump-autoload in case of migrate error, then migrate again
  9. Run php artisan storage:link (setting up uploads)

Running in local environments

Run php artisan serve for serving the project on localhost.

By default the HTTP-server will listen to port 8000. However if that port is already in use or you wish to serve multiple applications this way, you might want to specify what port to use. Just add the --port argument:

php artisan serve --port=8080

That would result your project being hosted on http://localhost:8080.