Skip to content

bmazurme/ntlstl.places

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project: ntlstl.places

Tech Stack

TypeScript React Redux Sharp Express PostgreSQL Sequelize HTML5 CSS3 Eslint Stylelint BEM Webpack Jest Cypress PostCSS PM2 Docker

About

  • Photo posting service.

Auto tests backend Auto tests frontend Deploy backend Deploy frontend

Demo

Alt-text

Installation

# 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

Postgres

$ brew update

$ brew doctor

$ brew install postgresql@14

$ brew services start postgresql@14

$ brew services list

$ brew services stop postgresql@14

Docker

$ 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

NGINX

$ 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

SSL

$ sudo apt update

$ sudo apt install -y certbot python3-certbot-nginx

$ sudo certbot --nginx

$ sudo systemctl reload nginx