Skip to content

albertyw/nopages

Repository files navigation

Build Status Maintainability Code Coverage Varsnap Status

No page breaks in Google Docs

Development

Setup Development Environment

Using python venv, direnv, and pnpm.

python3.14 -m venv env
pip install -e .[test]
ln -s .env.development .env
pnpm install

Spinning up the server

pnpm run build:dev
python app/serve.py

Running tests

ruff check .
mypy .
shellcheck --exclude=SC1091 bin/*.sh
coverage run -m unittest discover
pnpm test

CI/CD

This repo uses:

# Setup
pyenv local 3.14
pip install -e .[test]
ln -s .env.development .env

# Test
ruff check .
mypy .
coverage run -m unittest discover
coverage report
pnpm test

# Deployment
ssh ubuntu@direct.albertyw.com nopages/bin/deploy.sh

Building and starting the docker container

docker build -t nopages:test .
docker run -t -i -p 127.0.0.1:5000:5000 nopages:test

Production

Setup Production Environment

Run this once on a new server to set up the web app:

bin/setup.sh

Deployment

Run this every time for a new commit to the repository:

bin/deploy.sh

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •