Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e72e7b7
Added initial configuration for poetry and the venv. Also added the .…
Eric-Butcher Sep 29, 2024
4208a73
Basic Django Structure App + Skeleton Template PR (#2)
sumanyuj Sep 29, 2024
433f4ef
added index.html & CSS (#6)
rancescolon Oct 4, 2024
f5c4625
Feature/docker (#3)
giagermain Oct 4, 2024
f7adef5
Add some real simple JavaScript (#4)
WeirdAlex03 Oct 7, 2024
8cc2a91
This pull request is going to be the last one for objective 1 so hope…
sumanyuj Oct 12, 2024
08adecc
Added poetry to docker (merging Gia's poetry docker stuff) (#14)
sumanyuj Oct 12, 2024
2858658
Create email & password validators w/ tests (#12)
WeirdAlex03 Oct 12, 2024
0590672
removed req.txt and added email-validator to poetry (#15)
sumanyuj Oct 12, 2024
b77312e
Feature/jslogin -> Created JS functionality for LOGIN validation, an …
sumanyuj Oct 24, 2024
107a2f7
Got the database container setup done. (#26)
Eric-Butcher Oct 24, 2024
7ab557d
Fixed the ducplicated div for the register and login, and renamed the…
Eric-Butcher Oct 25, 2024
476ca05
regenerated poetry lock (#31)
Eric-Butcher Oct 25, 2024
f8a833f
Authentication methods & database backend (#33)
WeirdAlex03 Oct 26, 2024
842bdb2
Rework docker to auto run migrations on start (#35)
WeirdAlex03 Oct 26, 2024
d923c4b
README now reflects migrations happening during container build (#36)
Eric-Butcher Oct 27, 2024
ba28c84
Feature/path3 (#28)
rancescolon Oct 27, 2024
8d38f2e
Feature/logged in homepage (#41)
giagermain Oct 27, 2024
04962e1
Chat functionality (#34)
giagermain Oct 27, 2024
013283c
(feature/likebutton) OBJ3: BRIDGING THE ENLIGHENTED BACKEND WITH THE …
sumanyuj Oct 28, 2024
7b239e9
Add comments for TA grading & cleanup imports (#39)
WeirdAlex03 Oct 28, 2024
d9995a3
Hotfix README (#44)
WeirdAlex03 Oct 29, 2024
f6baa5b
Got codeql analysis from github (#45)
Eric-Butcher Nov 4, 2024
b2b32dc
Exclude Django library files from CodeQL scanning (#48)
WeirdAlex03 Nov 5, 2024
70c866b
Updated READMe (#46)
Eric-Butcher Nov 5, 2024
216f586
Added autopep8 formatting (#42)
Eric-Butcher Nov 5, 2024
8ca5039
Clean up flagged problems/vulns (#49)
WeirdAlex03 Nov 8, 2024
96e3fe0
initial attempt at github actions workflow for formatting and testin…
Eric-Butcher Nov 12, 2024
f0df09d
Feature/nginx (#51)
giagermain Nov 24, 2024
a8c9744
Rework Docker & nginx configs for w/ & w/o SSL (#53)
WeirdAlex03 Dec 1, 2024
fe7d533
Project Part 2: Web Sockets: WEB SOCKET SUPREMACY (#50)
sumanyuj Dec 2, 2024
c020e0c
fixed escaping (#54)
sumanyuj Dec 2, 2024
0209682
Nuke @csrf_exempt: fix problem instead of symptom (#56)
WeirdAlex03 Dec 2, 2024
a2913c1
Hotfix/redirect (#57)
giagermain Dec 2, 2024
412727f
Add media folder to gitignore (#58)
WeirdAlex03 Dec 2, 2024
f26174a
updated readme for env (#59)
sumanyuj Dec 2, 2024
3232fb2
Demo Fix: Catch Socket Frames Before They Inflict Maximum Damage (#61)
sumanyuj Dec 6, 2024
6e77d31
fixed nontransparent background (#64)
giagermain Dec 6, 2024
a8e0a7f
Rate limiting for demo (#60)
WeirdAlex03 Dec 6, 2024
6018644
Feature/camera relay (#62)
Eric-Butcher Dec 6, 2024
fea26d8
Hotfix/redirect (#65)
giagermain Dec 9, 2024
058c4c0
Feature/camera relay (#66)
Eric-Butcher Dec 9, 2024
241e66a
Drop breaking line from nginx config (#67)
WeirdAlex03 Dec 9, 2024
b9ae9e7
flake8 complexity check and ammend validation logic on reigster and l…
Eric-Butcher Dec 24, 2024
5f5107b
Feature/pep8 naming (#68)
Eric-Butcher Dec 29, 2024
45efa04
Bump django from 5.1.3 to 5.1.5 in /evergreen (#80)
dependabot[bot] Jan 17, 2025
a39eb03
Fixed the settings to be secure (#84)
Eric-Butcher Jan 24, 2025
8bdb7c7
BSD-3 Clause License (#86)
Eric-Butcher Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
POSTGRES_DB: postgres
POSTGRES_USER: username123 # this is insecure - needs to be changed
POSTGRES_PASSWORD: password123 # this is insecure - needs to be changed
WAIT_HOSTS: database:5432
DJANGO_SECRET_KEY: replace-with-secrets-token-bytes # this is insecure - needs to be changed
DJANGO_DEBUG: false # must be a boolean
3 changes: 3 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
paths-ignore:
- evergreen/staticfiles/admin

70 changes: 70 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: "CodeQL Advanced"

on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]
schedule:
- cron: "21 9 * * 6"

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
- language: python
build-mode: none
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config-file: ./.github/codeql/codeql-config.yml
queries: security-and-quality
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make'
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
44 changes: 44 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Linting

on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./evergreen

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install environment
# poetry environment should include:
# pip install flake8
# pip install black
# pip install isort
# pip install mypy
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install

- name: Sort imports with isort
run: poetry run isort -c .

- name: Format with black
run: poetry run black --check .

# configured in .flake8
- name: Lint with flake8
run: poetry run flake8

- name: Check with mypy
run: poetry run mypy .
30 changes: 30 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Django Testing

on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./evergreen

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install environment
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install

- name: Django Testing
run: |
poetry run python manage.py test
Loading
Loading