-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: moved advent folder -> puzzles, added some comments * feat(docker): start separation of dev and prod builds, add pytest functionality to backend * feat(docker): added dev/prod to frontend, transition frontend to yarn * fix: remove .vscode folder * fix(makefile): restructured makefile a bit * feat: removed .vscode folder from git * feat(auth): get rudimentary autotesting in place, created clear_database function * feat(test): added all tests for auth/register * fix(puzzle): changed blueprint in routes/puzzle.py
- Loading branch information
Showing
28 changed files
with
9,728 additions
and
255 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
config/*.env | ||
config/*.env | ||
.vscode |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## COMMON COMMANDS | ||
|
||
.PHONY: stop | ||
|
||
stop: | ||
docker-compose down | ||
|
||
## DEVELOPMENT MODE | ||
|
||
.PHONY: build-dev dev destroy-dev restart-dev | ||
|
||
build-dev: | ||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build | ||
|
||
dev: | ||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up | ||
|
||
destroy-dev: | ||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml down -v | ||
|
||
restart-dev: destroy-dev build-dev | ||
|
||
## PRODUCTION MODE | ||
|
||
.PHONY: build run restart | ||
|
||
build: | ||
docker-compose up --build -d | ||
|
||
run: | ||
docker-compose up -d | ||
|
||
restart: | ||
docker-compose down -v | ||
docker-compose up --build -d | ||
|
||
## TESTS | ||
|
||
.PHONY: test-backend | ||
|
||
test-backend: | ||
docker-compose exec backend pytest . |
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,20 +1,24 @@ | ||
[[source]] | ||
url = "https://pypi.python.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
Flask = "*" | ||
Flask-SQLAlchemy = "*" | ||
Flask-Login = "*" | ||
psycopg2-binary = "*" | ||
email-validator = "*" | ||
argon2-cffi = "*" | ||
flask-jwt-extended = "*" | ||
redis = "*" | ||
flask-cors = "*" | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.8" | ||
[[source]] | ||
url = "https://pypi.python.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
Flask = "*" | ||
Flask-SQLAlchemy = "*" | ||
Flask-Login = "*" | ||
psycopg2-binary = "*" | ||
email-validator = "*" | ||
argon2-cffi = "*" | ||
flask-jwt-extended = "*" | ||
redis = "*" | ||
flask-cors = "*" | ||
flask-mail = "*" | ||
gunicorn = "*" | ||
|
||
[dev-packages] | ||
pytest = "*" | ||
requests = "*" | ||
|
||
[requires] | ||
python_version = "3.8" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.