Wolfskii / 2dv612-GreenDay

Local farmers' market web app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Development

Docker Compose is used to run all the services in the local environment.
All the services can be found in the docker-compose.yml file.

Note: The images must be rebuilt when a new package is installed with NPM as the packages (node_modules) are installed in the Dockerfile (Dockerfile.dev).

Some Docker Compose commands

Start all services in detached mode:

  • docker-compose up -d

Stop all services and remove all volumes:

  • docker-compose down --volumes

List all services:

  • docker-compose ps

Build one service without cache:

  • docker-compose build <SERVICE_NAME> --no-cache

Build all services without cache:

  • docker-compose build --no-cache

Some Docker commands related to troubleshooting

List all containers:

  • docker container ls

List all volumes:

  • docker volume ls

Clean up unused resources:

  • docker system prune -a

Remove all containers:

  • docker rm -f $(docker ps -a -q)

Remove all volumes:

  • docker volume rm $(docker volume ls -q)

Linting and testing

Run npm testto execute all tests (currently only on the client side) and lint code with ts-standard

Run npm run lint:fix to auto fix all auto-fixable code style errors (currently only on client side).

About

Local farmers' market web app


Languages

Language:TypeScript 93.3%Language:CSS 4.3%Language:JavaScript 1.6%Language:HTML 0.8%Language:Shell 0.0%