Skip to content

Commit

Permalink
Switch to Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteinberg committed Dec 12, 2022
1 parent e1b0eb9 commit 888fd29
Show file tree
Hide file tree
Showing 5 changed files with 503 additions and 61 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@ Write your post using the WYSIWYG editor, then click the download button. You'll

## Running locally

1. Make a virtual environment and install requirements:
1. [Install Poetry](https://python-poetry.org/docs/#installation) and install requirements:

```
pyenv virtualenv blog-generator
pyenv activate blog-generator
pip install -r requirements.txt
poetry install
```

2. Configure local settings:

```
echo "FLASK_SECRET_KEY=adjkahflashfjdlsahfjahlsdfa" >> .flaskenv
echo "FLASK_ENV=development" >> .flaskenv
echo "FLASK_DEBUG=1" >> .flaskenv
```

### (Recommended)
Expand All @@ -33,9 +31,14 @@ echo "BYPASS_LOGIN=True" >> .flaskenv
3. Run the Flask development server

```
flask run
poetry run flask run
```

For deployment, if you make changes to `poetry.lock`, e.g. with `poetry add <package>`, export the conventional requirements file:

```
poetry export -o requirements.txt
```

## Authentication via Github

Expand Down
Loading

0 comments on commit 888fd29

Please sign in to comment.