-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add mysql db backend to docker compose * use mysql engine and model * fix typo * set up CI for mysql * pass secrets to app * use IP adress for mysql docker connection * encrypt donation, separate table for newsletter emails
- Loading branch information
Showing
8 changed files
with
112 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,22 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Shutdown Ubuntu MySQL (SUDO) | ||
run: sudo service mysql stop | ||
- name: set up mysql | ||
uses: mirromutth/[email protected] | ||
with: | ||
mysql version: '9.0.1' | ||
mysql database: 'email_donations' | ||
mysql user: 'donor' | ||
mysql password: ${{ secrets.MYSQL_PASSWORD }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
- name: run base tests | ||
env: | ||
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }} | ||
FLASK_SECRET_KEY: ${{ secrets.FLASK_SECRET_KEY }} | ||
run: | | ||
cd src/app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
# donation-webserver | ||
Webserver for email donation | ||
|
||
# Install [mysql-client](https://github.com/PyMySQL/mysqlclient) dependencies | ||
|
||
``` | ||
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential pkg-config | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
flask | ||
flask-sqlalchemy | ||
sqlalchemy | ||
sqlalchemy-utils | ||
cryptography | ||
mysqlclient | ||
gunicorn | ||
pytest | ||
pytest-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters