A starter project for python web development in glitch.
- python3
- flask
- Install pipenv:
python3 -m pip install pipenv - Install dependencies:
pipenv install --ignore-pipfile - Run:
pipenv run python server.py
- Install development dependencies:
pipenv install --dev - Enter environment:
pipenv shell - Install the new dependency:
pip install <package> - View dependencies:
pip list - Generate new lockfile:
pipenv lock - Update requirements.txt for glitch, since it only has pip:
python -m pip freeze > requirements.txt
- Exit:
exit
- I haven't figured out how to use pipenv with glitch.
Adapted from flask-python3.