/resume-tailoring-tool

A tool to tailor your résumé to a job description. Live at https://resumetool.eliasjaffe.com/

Primary LanguageVue

Resume Tailoring Tool

https://resumetool.eliasjaffe.com

Intro & Demo

Intro and Demo Video

An intro and demo video for the tool.

Import / Export JSON File Examples

Development

Frontend Dev

cd frontend
npm install && npm run dev 

Backend Dev

cd backend
# activate venv
cd src
uvicorn --port 20595 app:app --reload --env-file ./.env.development

Production

Variable Sensible Default (Amazon Linux)
INSTALL LOCATION /home/ec2-user/repo
WEB COMMON /var/www/app/dist

Install

Common Install

sudo yum install -y nginx npm git python3
git clone https://github.com/HandcartCactus/resume-tailoring-tool.git /home/ec2-user/repo;

Frontend Install

#cd /home/ec2-user/repo/frontend

npm install
npm run build
sudo mkdir /var/www/
sudo mkdir /var/www/app
sudo cp -R /home/ec2-user/repo/frontend/dist /var/www/app
# Modify filename & internal url before copying if you're not me
sudo cp /home/ec2-user/repo/frontend/resumetool.eliasjaffe.com.conf /etc/nginx/conf.d
Install SSL/TLS Cert (if needed)
sudo yum install certbot
sudo certbot certonly --standalone -d resumetool.eliasjaffe.com
sudo systemctl start certbot-renew.timer

Backend Install

cd /home/ec2-user/repo/backend
python3 -m venv venv
source /home/ec2-user/repo/backend/venv/bin/activate
python3 -m pip install -r /home/ec2-user/repo/backend/requirements.txt
deactivate

Run Deployment

Frontend Run

sudo nginx 

Backend Run

cd /home/ec2-user/repo/backend
source venv/bin/activate
cd src
nohup uvicorn app:app --host 0.0.0.0 --port 20595 --workers 4 --env-file ./.env.production &

Stop Deployment

Frontend Stop

See NGINX stop options

# one of these:
# graceful stop
sudo nginx -s quit
# i'm serious
sudo nginx -s stop
# don't make me call your mother
kill -9 $(pgrep --full nginx)

Backend Stop

kill $(pgrep --full "/home/ec2-user/repo/backend/venv/bin/python3")

Update Deployment

cd /home/ec2-user/repo
git fetch
git pull
cd frontend
npm install
npm run build
sudo rm -rf /var/www/app
sudo cp -R /home/ec2-user/repo/frontend/dist /var/www/app
cd ../backend
source venv/bin/activate
python -m pip install -r requirements.txt
cd src
kill $(pgrep --full "/home/ec2-user/repo/backend/venv/bin/python3")
nohup uvicorn app:app --host 0.0.0.0 --port 20595 --workers 4 --env-file ./.env.production &
deactivate
cd /home/ec2-user/repo