The simple application for creating documents from pdf file.
- Docker;
- Docker-compose util;
- PHP 7.4 or higher;
- Composer(is a tool for dependency management in PHP);
- Git;
First you need clone the repository:
$ git clone git@github.com:USERNAME/sun.git
$ cd path/to/cloneRename the .example.env with .env
Build and start the images and containers using:
$ docker-compose up -d --buildYou should also run commands such as composer in the container.
The container environment is named php so you will pass that value to docker-compose run:
$ docker-compose run --rm -u${UID} php composer installChange the permissions on folders var and public/uploads follow command:
$ sudo chmod 777 -R var public/uploadsAt this point, you can visit http://localhost:8000 to see the site running.
Creating the new documents with attachment
curl -i -X POST -H "Content-Type: multipart/form-data" -F "pdfDocument=@test.pdf" http://localhost:8000/documents/attachmentsTODO