Browse Source

instructions

main
Sergio Álvarez 11 months ago
parent
commit
efcc2a1f16
Signed by: salvarez
GPG Key ID: BD711A37FE7DD77E
  1. 4
      docker/README.md
  2. 13
      frontend/README.md

4
docker/README.md

@ -1,3 +1,7 @@ @@ -1,3 +1,7 @@
For dev, use `docker-compose.yml` and `Dockerfile`.
Tests:
```
docker build -t php_symfony --progress=plain .
docker run --rm --name phptest -v $(pwd):/var/www/html --user 1000:1000 php_symfony

13
frontend/README.md

@ -1,3 +1,16 @@ @@ -1,3 +1,16 @@
# Docker
```shell
docker run --rm -it --name npmbuild --user 1000:1000 -v $(pwd):/app --workdir /app node npm install
docker run --rm -it --name npmbuild --user 1000:1000 -v $(pwd):/app --workdir /app node npm run build
```
Dev server:
```shell
docker run --rm -it --name npmbuild --user 1000:1000 -v $(pwd):/app --workdir /app -p 3000:3000 node npm start
```
# Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

Loading…
Cancel
Save