- Photo posting service.
# clone the repository on your computer
$ git clone git@github.com:bmazurme/react-mesto-auth.git
# install dependencies
$ npm install
# run dev mode
$ npm run dev
# build project
$ npm run build
# clear project
$ npm run clear
# run eslint
$ npm run eslint
# launch
$ npm start
$ brew update
$ brew doctor
$ brew install postgresql@14
$ brew services start postgresql@14
$ brew services list
$ brew services stop postgresql@14
$ docker-compose build
$ docker-compose up
$ docker-compose stop
$ docker system prune -a
$ docker push cr.yandex/${CR_REGISTRY}/places:latest
$ docker pull cr.yandex/${CR_REGISTRY}/places:latest
$ docker run cr.yandex/${CR_REGISTRY}/places:latest
$ docker run -d -p 80:3005 cr.yandex/${CR_REGISTRY}/places:latest
$ docker rmi id -f
# [https://cloud.yandex.ru/docs/container-registry/tutorials/run-docker-on-vm#before-begin](https://cloud.yandex.ru/docs/container-registry/tutorials/run-docker-on-vm#before-begin)
$ docker exec -it container_ID_or_name /bin/bash
$ sudo apt update
$ sudo apt install -y nginx
$ sudo ufw allow 'Nginx Full'
$ sudo ufw allow OpenSSH
$ sudo ufw enable
$ sudo systemctl enable --now nginx
$ sudo nano /etc/nginx/sites-available/default
$ sudo nano /etc/nginx/sites-available/domain.com
$ sudo ln -s /etc/nginx/sites-available/domain.com /etc/nginx/sites-enabled/domain.com
$ sudo nginx -t
$ sudo systemctl reload nginx
$ sudo apt update
$ sudo apt install -y certbot python3-certbot-nginx
$ sudo certbot --nginx
$ sudo systemctl reload nginx