Personal website
Using python venv
python3.13 -m venv env
pip install -e .[test]
ln -s .env.development .env
npm install
# Install shellcheck
# brew install shellcheck
# sudo apt-get install shellcheck
npm run build:dev
python app/serve.py
ruff check .
mypy .
shellcheck --exclude=SC1091 bin/*.sh
coverage run -m unittest discover
npm test
This repo uses:
# Setup
pyenv local 3.13
pip install -e .[test]
ln -s .env.development .env
# Test
ruff check .
mypy .
coverage run -m unittest discover
coverage report
codeclimate-test-reporter
npm test
# Deployment
ssh ubuntu@direct.albertyw.com website/bin/deploy.sh
docker build -t albertyw.com:test .
docker run -t -i -p 127.0.0.1:5000:5000 albertyw.com:test
Run this once on a new server to set up the web app:
bin/setup.sh
Run this every time for a new commit to the repository:
bin/deploy.sh