painterapi
# install web server
sudo apt install nginx
# copy config file
sudo cp painterapi.nginx.conf /etc/nginx/sites-enabled/
# rename config file
sudo mv /etc/nginx/sites-enabled/painterapi.nginx.conf /etc/nginx/sites-enabled/painterapi
# change the server_name from api.localhost to whatever you want to use in the config file
# add the server_name to your hosts file in /etc/hosts, in my case this line was:
127.0.0.1 api.localhost
# restart nginx
sudo service nginx restart
# install composer
see: https://getcomposer.org/download/
# install dependencies
composer install
# create .env file
cp .env.default .env
# edit .env file database username and password
# create database
# update database schema
php artisan migrate
# create oauth clients
php artisan passport:install
# edit vue store
# go to the file src/classes/Store.js in the frontend vue project and edit the parameters in it,
# you can find the client_id and client_secret in the oauth_clients table
# (client_id is most likely 2, the password client)