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 [email protected]:USERNAME/sun.git
$ cd path/to/clone
Rename the .example.env
with .env
Build and start the images and containers using:
$ docker-compose up -d --build
You 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 install
Change the permissions on folders var
and public/uploads
follow command:
$ sudo chmod 777 -R var public/uploads
At 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 "[email protected]" http://localhost:8000/documents/attachments
TODO