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 +```