Unlocked is a software package consisting of at least a key server and a client application. The goal of unlocked is to provision keys to clients that requested access to these keys after authorization by a user.
This application makes use of docker-compose for development.
First install all dependencies with composer to a docker volume. This command needs to be only run once:
docker-compose run composer install
Run
docker-compose up server
and the unlocked-server becomes available at
https://localhost:8000
.
docker-compose run console <command>
docker-compose run composer require <package>
Note: This command tries to write to local files as user and group 1000
.
This may not fits everyones needs.
The user and group ids can be changed by editing the Dockerfile
and rebuilding the image with
docker-compose build
If there are still permission errors after this, try to delete the volumes with
docker-compose down -v
For node packages run
docker-compose run yarn add <package>
PHPCS and PHPStan are configured as composer scripts. They can be executed with
docker-compose run composer phpcs
and
docker-compose run composer phpstan