-
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.
Database fixing + Profile midway (#61)
* questions table correctly truncated * removed some bad functions from database * most auth tests passing, database functions fixed * puzzle skeleton, almost all tests passing except jwt token, added another stats function to prepare for leaderboard work * skeleton for leaderboard complete * added example tests for python * commented out some strings
- Loading branch information
Showing
40 changed files
with
38,905 additions
and
38,702 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,3 +1,3 @@ | ||
config/*.env | ||
.vscode | ||
config/*.env | ||
.vscode | ||
node_modules |
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,42 +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 . $(args) | ||
## 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 . $(args) |
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,11 @@ | ||
[[source]] | ||
url = "https://pypi.python.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.8" |
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,28 +1,28 @@ | ||
[[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 = "*" | ||
itsdangerous = "*" | ||
|
||
[dev-packages] | ||
pytest = "*" | ||
requests = "*" | ||
freezegun = "*" | ||
fakeredis = "*" | ||
pytest-mock = "*" | ||
|
||
[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 = "*" | ||
itsdangerous = "*" | ||
|
||
[dev-packages] | ||
pytest = "*" | ||
requests = "*" | ||
freezegun = "*" | ||
fakeredis = "*" | ||
pytest-mock = "*" | ||
|
||
[requires] | ||
python_version = "3.8" |
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
Oops, something went wrong.