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

About

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

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

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

About

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

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages