/frontend

Primary LanguageTypeScriptMIT LicenseMIT

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

Lint Build Build docker image

What's in the box

Initial setup

git clone git@github.com: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