Skip to content
Snippets Groups Projects
user avatar
dcz authored
72c644eb

ShellValier v2

Running the development environment

In order to run the development environment locally:

  1. Make sure you have Docker Desktop and Docker Compose installed.

  2. Set evn variable pointing to the path where yhe database will be located

    export DATABASE_DIR=

  3. Build and run the project by executing:

     ./docker/scripts/run-docker
  4. In order to fulfill database execute belove commands

     docker-compose stop backend
     docker-compose run backend bash 
         -> run ./reset_db.sh script in interactive bash
         -> exit interactive bash by typing ctrl-d
     docker-compose start backend

In order to reinstall a database instance a folder specified by the DATABASE_DIR should be removed.

Working in the development environment

Whenever you need to establish an interactive bash session in the running application container, execute:

    ./docker/scripts/docker-bash

Deploying to production

In order to build the frontend Vue.js application for production execute the following command:

  docker-compose run frontend yarn build

Compiled application files will be located in frontend/dist/.