diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..32b2121 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +.PHONYS: run deps dev + +venv: + virtualenv venv + +requirements-dev.txt: + pip-compile requirements-dev.in > requirements-dev.txt + +requirements.txt: + pip-compile requirements.in > requirements.txt + +dev-deps: requirements-dev.txt + pip install -r requirements-dev.txt + +deps: requirements.txt + pip install -r requirements.txt + +dev: venv requirements-dev.txt requirements.txt deps dev-deps + +run: + python3 app/main.py \ No newline at end of file diff --git a/README.md b/README.md index 066ba41..143f68c 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,7 @@ This is to be replaced by Influx in the future, a more fleshed-out approach with ## Getting Started (local) ```py # Requires >= Python3.8 -python3 -m pip install -r requirements.txt -python3 index.py +make dev ``` ## Deploying diff --git a/options-example.yml b/options-example.yml index 609c407..7ffc82d 100644 --- a/options-example.yml +++ b/options-example.yml @@ -1,6 +1,6 @@ bws: project_id: "your_project_id" - enable: "false" + enable: False jwt: secret: "your_jwt_secret_key_here" # Ensure this is at least 32 characters long @@ -16,14 +16,14 @@ infra: horizon: "https://horizon.hackucf.org" discord: - client_id: "your_discord_client_id_here" + client_id: 0 secret: "your_discord_secret_here" redirect_base: "https://join.hackucf.org/api/oauth/?redir=" scope: "email identify guilds.join" bot_token: "your_discord_bot_token_here" - guild_id: "your_guild_id_here" - member_role: "your_member_role_id_here" - enable: false + guild_id: 0 + member_role: 0 + enable: true stripe: api_key: "your_stripe_api_key_here" @@ -43,6 +43,4 @@ telemetry: url: "your_telemetry_url_here" enable: false -database: - url: "sqlite:////data/database.db" # For docker create database/ - #url: "sqlite:///database/database.db" # For local dev create database/ \ No newline at end of file +keycloak: diff --git a/requirements-dev.in b/requirements-dev.in new file mode 100644 index 0000000..b481047 --- /dev/null +++ b/requirements-dev.in @@ -0,0 +1,5 @@ +httpx +pre-commit +pytest +semgrep +pip-tools \ No newline at end of file diff --git a/requirements.in b/requirements.in new file mode 100644 index 0000000..c9befdf --- /dev/null +++ b/requirements.in @@ -0,0 +1,7 @@ +requests +python-keycloak +alembic +pydantic +fastapi +stripe +sentry_sdk \ No newline at end of file