Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.28 KB

DEVELOPMENT.md

File metadata and controls

53 lines (36 loc) · 1.28 KB

Development

This document describes the process for running the application locally.

Prerequisites

Docker and Docker Compose.

You can optionally use Træfik for ease of exposing the site. Check out Træfik & Docker.

Develop with Docker Compose

The very first time you set up the project you'll have to install dependencies, hence run:

docker compose build
docker compose run --rm -it site poetry install
docker compose run --rm -it site npm install
docker compose run --rm -it site npx playwright install chromium

After that, just run:

docker compose up -d

Easy peasy.

If you're using Træfik, the site should be available at marketlab.mcieno.internal. Otherwise, simply run docker compose ps and find out which host port was assigned to the containers.

Cheat sheet and examples

This section contains a list of examples showcasing typical development interactions and operations.

Run tests

docker compose exec -it site npm run test

Lint and format

docker compose exec -it site npm run lint
docker compose exec -it site npm run fmt