Skip to content

Latest commit

 

History

History
82 lines (59 loc) · 1.66 KB

README.md

File metadata and controls

82 lines (59 loc) · 1.66 KB

Дарителска Платформа - Frontend

Lint Build Build docker image

What's in the box

Initial setup

git clone [email protected]:daritelska-platforma/frontend.git
cd frontend

# Symlink dev environment
ln -s .env.example .env

Development

yarn dev

Visit http://localhost:3040/

Run via Docker Compose

Install the binary via https://docs.docker.com/compose/install/

Start the container in foreground

docker-compose up

Start the container in background

docker-compose up -d
docker-compose logs -f

Stop the docker container with docker-compose down

Linting

yarn lint
yarn lint:styles
yarn format
yarn type-check

Production

Build frontend

yarn build

Build Docker image

docker build . \
    --file ./Dockerfile \
    --target production \
    --build-arg NODE_ENV=production