From a167a14f123d00a121ca873ae06ec9c910b464ae Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Mon, 22 Feb 2021 11:04:42 +0100 Subject: [PATCH] new docs for development docker and standalone --- docs/development/docker.md | 43 ++++++++++++++++++++++++++++++++++ docs/development/index.md | 11 +++++++++ docs/development/standalone.md | 25 ++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 docs/development/docker.md create mode 100644 docs/development/index.md create mode 100644 docs/development/standalone.md diff --git a/docs/development/docker.md b/docs/development/docker.md new file mode 100644 index 00000000..2642a242 --- /dev/null +++ b/docs/development/docker.md @@ -0,0 +1,43 @@ +--- +layout: default +title: Docker +parent: Development +has_children: false +permalink: /development/docker +description: >- +Setup docker and docker-compose for quick full stack mainsail development with simulavr without any real printer +--- + +# {{ page.title }} +{{ page.description }} + +# Setup +Install docker and docker-compose on your desired machine. + +####Debian/Ubuntu +```shell +sudo apt install docker docker-compose +``` +####Mac +https://docs.docker.com/docker-for-mac/install/ +####Windows +https://docs.docker.com/docker-for-windows/install/ + +# Start +1. Look into the docker/config folder. Copy the ".example" without the "example ending". +2. Edit the configs to your likings. They are inital setup for a minimal setup environment with simulavr. +3. In the root directory of mainsail run +```shell +docker/run up +``` + +# Development +For development its sometimes needed to restart the simulavr process. +For this run: +```shell +docker exec -it mainsail-stack bash +``` +in the spawnin shell run: +```shell +~/restart-services.sh +``` diff --git a/docs/development/index.md b/docs/development/index.md new file mode 100644 index 00000000..6989a499 --- /dev/null +++ b/docs/development/index.md @@ -0,0 +1,11 @@ +--- +layout: default +title: Development +nav_order: 15 +has_children: true +permalink: /development +description: development guide +--- + +# {{ page.title }} +{{ page.description }} diff --git a/docs/development/standalone.md b/docs/development/standalone.md new file mode 100644 index 00000000..7ad5f4bd --- /dev/null +++ b/docs/development/standalone.md @@ -0,0 +1,25 @@ +--- +layout: default +title: Standalone +parent: Development +has_children: false +permalink: /development/standalone +description: >- +Setup the project and start developing with your local printer(s) +--- + +# {{ page.title }} +{{ page.description }} + +# Setup +Make a copy of the '.env.development.local.example' and omit the .example. +In the new file edit it to refect your desired printer: +```dotenv +VUE_APP_HOSTNAME=192.168.0.15 #for your printer with moonraker running on 192.168.0.15 +``` +In moonraker you need to add your local ip at the cors_domains: +```yaml +cors_domains: + http:// +``` +access the local running dev environment with `http://`.