From 9614bec03f91382c323c320cf3a93ceb1115ea5e Mon Sep 17 00:00:00 2001 From: temz Date: Wed, 12 Apr 2023 19:42:31 +0700 Subject: [PATCH] docs: add installing guide --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/README.md b/README.md index e3acf77..9e0b89b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,47 @@ # NX Useful libs collection Checkout documentation: https://temarusanov.github.io/nx/ + +## Installing + +### Install Ansible + +Check full tutorial about Ansible installing [here](https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-20-04) + +```bash +sudo apt-add-repository ppa:ansible/ansible +``` + +```bash +sudo apt update +``` + +```bash +sudo apt install ansible +``` + +If you don't have `docker` and `nvm` install then locate to `devops/ansible` and run + +```bash +ansible-playbook prepare_environment.yml --ask-become-pass +``` + +## Run + +Install dependencies + +```bash +npm install +``` + +Use container command to create a docker image + +```bash +npx nx container +``` + +Run full environment in docker containers + +``` +ansible-playbook start_app.yml --ask-become-pass +```