The REST API for Davor Minchorov's personal website and blog.
For the front end application, please see: davorminchorov/davorminchorov.com
To set up the project locally follow the instructions.
- Install Docker and Docker Compose for the operating system of your choice.
- Get into your project directory (
cd api.davorminchorov.com
) - 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
- Run the containers in daemon mode using
vendor/bin/sail up -d
- Access the PHP container using
vendor/bin/sail shell
- Run
composer install
to install of the composer dependencies. - Rename the docker example
.env
file usingcp .env.example .env
- Run
php artisan key:generate
to generate an application key (APP_KEY
) - Run
php artisan migrate
to run all migrations - Add
127.0.0.1 api.davorminchorov.test:8000
to your/etc/hosts
file - Access the site using
api.davorminchorov.test:8000
in your browser