Newer
Older
# ShellValier v2
## Running the development environment
In order to run the development environment locally:
1. Make sure you have [Docker Desktop](https://docs.docker.com/desktop/) and [Docker Compose](https://docs.docker.com/compose/) installed.
2. Set evn variable pointing to the path where yhe database will be located
export DATABASE_DIR=<path to database dir in local file system>
2. Build and run the project by executing:
3. 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
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/`.