Skip to content

Commit

Permalink
readme upd
Browse files Browse the repository at this point in the history
  • Loading branch information
alcalbg committed Dec 1, 2023
1 parent 57e2917 commit 20f6e46
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Expand Up @@ -110,10 +110,23 @@ Precompiled build is created for non-developers. In this version, the frontend (

[Download & install instructions](https://docs.filegator.io/install.html)

## Build the frontend using a single docker command
Using node v14:
## Project setup for development (Docker)
This uses the included `Dockerfile.dev` file which will build a debian image with php8.3 and node18.

Install dependencies, start and hot reload:
```
docker run -it --rm --name filegator-dev-env \
-p 8080:8080 -p 8081:8081 \
-v "$PWD":/usr/src/app -w /usr/src/app \
$(docker build -q - < Dockerfile.dev) \
bash -c 'composer install && npm i && npm run serve'
```
Build fontend into dist/ folder:
```
docker run -it --rm --name my-running-script -v "$PWD":/usr/src/app -w /usr/src/app node:14 bash -c 'npm i && npm run build'
docker run -it --rm --name filegator-dev-env \
-v "$PWD":/usr/src/app -w /usr/src/app \
$(docker build -q - < Dockerfile.dev) \
bash -c 'npm run build'
```

## Project setup for development (Linux)
Expand Down

0 comments on commit 20f6e46

Please sign in to comment.