/mocket

A mock of the "Pocket" app, made with Laravel.

Primary LanguagePHPMIT LicenseMIT

mocket

A mock of the "Pocket" app, made with Laravel.

image

Local installation (Docker)

  1. Install PHP with Homebrew (to ensure proper extensions are included).
  2. Install Composer globally, and make sure vendor libraries are available in the path: export PATH="$HOME/.composer/vendor/bin:$PATH".
  3. Install Docker for Mac.
  4. Start Docker Desktop.

Application setup

  1. Create a .env file from .env.example.
  2. Run docker-compose up -d.
  3. Install with ./dev install.

To rebuild the application from scratch, in one line:

./dev d && ./dev b && sleep 15 && ./dev i

The dev utility

Run arbitrary commands in the container with:

./dev <COMMAND>

Run Laravel Artisan in the container with:

./dev art <COMMAND>

Run unit tests with:

./dev t

Log into the container with:

./dev s

Resources for Docker and Laravel