Skip to content

princecrown1019/angular-copyleads-ui

Repository files navigation

copyleads-ai-logos-white

Getting Started

Prerequisites

  • Node Js must be installed on your system

Installation

  1. Clone the repository
eval "$(ssh-agent -s)"
ssh-add /path/to/ssh_key_file
git clone git@github.com:copyleads-ai/copyleads_ui.git
  1. Install Dependencies
npm install
  1. Run the project
npm run dev
sudo docker network create UI_NETWORK    
sudo docker network ls

sudo docker build -t copyleads_ui .
sudo docker run --name COPYLEADS_UI -p 0.0.0.0:3000:3000 -d --restart=unless-stopped --network UI_NETWORK copyleads_ui
sudo docker stop $(sudo docker ps -aq)
sudo docker ps -a
sudo docker rm <container_id>

SSL Certificate

sudo apt update
sudo apt install certbot
sudo add-apt-repository ppa:certbot/certbot
sudo apt install python3-certbot-nginx
sudo certbot plugins
sudo certbot certonly --nginx -d yourdomain.com

Nginx Reverse Proxy

sudo systemctl start nginx
sudo systemctl status nginx
sudo cp myapp.conf /etc/nginx/sites-available/myapp.conf

sudo ln -s /etc/nginx/sites-available/myapp.conf /etc/nginx/sites-enabled/
sudo unlink /etc/nginx/sites-enabled/myapp.conf

sudo nginx -t
sudo systemctl reload nginx
---- UnLink -----
cd /etc/nginx/sites-enabled
sudo unlink myapp.conf

Built With

References