remarkbox/Makefile
Russell Ballestrini d93e9106d4 Verification challenge code refactor
it works good enough,

future commits will do some refactors to make the success
screen more user friendly.

	modified:   Makefile
	modified:   README.rst
	modified:   index.html
	modified:   remarkbox/lib/mail.py
	modified:   remarkbox/lib/mail_messages.py
	modified:   remarkbox/models/meta.py
	modified:   remarkbox/models/user.py
	modified:   remarkbox/routes.py
	modified:   remarkbox/templates/join-or-log-in.j2
	modified:   remarkbox/templates/show-node.j2
	new file:   remarkbox/templates/verification-challenge.j2
	modified:   remarkbox/tests/test_models.py
	modified:   remarkbox/tests/test_views.py
	modified:   remarkbox/views/__init__.py
	modified:   remarkbox/views/authentication.py
2022-06-19 19:01:31 -04:00

35 lines
878 B
Makefile

env:
python3 -m venv env
. env/bin/activate
env/bin/pip install --upgrade pip
env/bin/pip install --upgrade -r requirements.py3.txt
cp -rp env env.vanilla
dev: env
env/bin/pip install --editable .
env/bin/pip install --upgrade -r requirements-dev.txt
env/bin/pip install --upgrade -r requirements-test.txt
prod: env
env/bin/pip install .
env/bin/pip install --upgrade -r requirements-prod.txt
clean:
rm -rf env
rm -rf env.vanilla
test: dev
env/bin/py.test
#env/bin/py.test --lf
serve: dev
# In the first shell, run a copy of remarkbox using:
env/bin/pserve development.ini --reload
http: dev
# In the second shell, run a "mock" simple HTTP webserver to serve index.html:
env/bin/python -m http.server 8000
smtp: dev
# In the third shell, run a "mock" SMTP server to catch log in emails:
sudo env/bin/python -m smtpd -n -c DebuggingServer localhost:25