Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Latest commit

 

History

History
34 lines (28 loc) · 1.91 KB

README.md

File metadata and controls

34 lines (28 loc) · 1.91 KB

Davor Minchorov API

Fix PHP Code Styles Run PHPStan Analysis Run PHPUnit Tests

The REST API for Davor Minchorov's personal website and blog.

For the front end application, please see: davorminchorov/davorminchorov.com

Installation instructions

To set up the project locally follow the instructions.

Laravel Sail (Docker) installation

  1. Install Docker and Docker Compose for the operating system of your choice.
  2. Get into your project directory (cd api.davorminchorov.com)
  3. Set up the docker containers using the following command:
docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v $(pwd):/var/www/html \
    -w /var/www/html \
    laravelsail/php80-composer:latest \
    composer install --ignore-platform-reqs
  1. Run the containers in daemon mode using vendor/bin/sail up -d
  2. Access the PHP container using vendor/bin/sail shell
  3. Run composer install to install of the composer dependencies.
  4. Rename the docker example .env file using cp .env.example .env
  5. Run php artisan key:generate to generate an application key (APP_KEY)
  6. Run php artisan migrate to run all migrations
  7. Add 127.0.0.1 api.davorminchorov.test:8000 to your /etc/hosts file
  8. Access the site using api.davorminchorov.test:8000 in your browser