Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop into main #608

Open
wants to merge 120 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
3aa6974
Created Context for Qualifier 1 Page (#502)
bzzz-coding Feb 29, 2024
05ae319
vite-refactor (#503)
bennyv8 Mar 7, 2024
ffef220
Create ci/cd for vite dev environment
jimmyjuareza Mar 12, 2024
53d40a8
Update MkDocs
jimmyjuareza Mar 12, 2024
e2756ca
Update MkDocs to material theme.
jimmyjuareza Mar 12, 2024
b37faa7
Update MkDocs action with new path
jimmyjuareza Mar 12, 2024
d087c99
Update MkDocs action with new path
jimmyjuareza Mar 12, 2024
379ea51
Added healthcheck endpoint to API (#525)
bzzz-coding Apr 19, 2024
b3c0750
Database schema (#528)
bennyv8 Apr 19, 2024
8ba744c
added model for post table and open pg port on docker (#533)
bennyv8 May 1, 2024
b28bdba
Remove backend folder from repo.
jimmyjuareza May 17, 2024
939a5c3
Redid backend strucure
jimmyjuareza May 17, 2024
0857689
Create a new template using poetry and django
jimmyjuareza Jun 14, 2024
aaa13e0
Add new ctjbackend folder
jimmyjuareza Jun 21, 2024
31ad971
Add docker-compose file.
jimmyjuareza Jun 21, 2024
affa11a
Backend opportunity model init (#545)
bennyv8 Jun 28, 2024
11ad034
Add docker-compose files
jimmyjuareza Jun 29, 2024
611fe41
Refactor ctj-backend to a stable foundation
jimmyjuareza Jul 13, 2024
437dd53
configured docker compose (#554)
bzzz-coding Aug 16, 2024
140cf62
Bump postgres version to v16
jimmyjuareza Sep 13, 2024
b5cdaab
initial vite HMR + django integration
LoTerence Aug 30, 2024
ca49ed6
fix static assets HMR
LoTerence Aug 30, 2024
8c41dcf
ignore build assets
LoTerence Aug 30, 2024
ed062d2
configure django env vars
LoTerence Aug 30, 2024
90070ef
fix vite assets manifest path
LoTerence Aug 30, 2024
e07367f
fix vite assets static load scripts
LoTerence Aug 30, 2024
a2379e6
ignore vite config timestap bug (known vite issue)
LoTerence Aug 30, 2024
cfb08dc
uninstall vite-plugin-html
LoTerence Aug 30, 2024
df4fe41
delete deprecated vite-index template
LoTerence Aug 30, 2024
7978d37
add context for base config
LoTerence Aug 30, 2024
a939335
remove env file from frontend and use default port setting
LoTerence Aug 30, 2024
5505ecd
backend should have a .env file
LoTerence Aug 30, 2024
8f8548a
describe manifest_path option
LoTerence Aug 30, 2024
f512100
set up docker compose dev environment
LoTerence Aug 30, 2024
5eb17b1
fix docker compose dev vite hmr
LoTerence Aug 30, 2024
e545784
remove unneeded env var
LoTerence Aug 30, 2024
2c4e602
fix file names
LoTerence Sep 13, 2024
4127c77
add pgdb healthcheck to docker compose
LoTerence Sep 16, 2024
b5434d3
fix vite.Dockerfile filename
LoTerence Sep 16, 2024
5b77afe
Fix django frontend routing
LoTerence Sep 18, 2024
fccdbf7
React Router fixes
LoTerence Sep 18, 2024
a682879
move vite build to frontend folder
LoTerence Sep 18, 2024
32f0d73
fixed name pattern
kevin31yu Sep 24, 2024
b9d27b3
Merge pull request #576 from kevin31yu/develop
kevin31yu Sep 25, 2024
ad7903e
added /api/healthcheck endpoint
LoTerence Sep 20, 2024
e3ec821
Feature: lint python (#574)
LoTerence Sep 26, 2024
3e5fc7e
Revert "Feature: lint python (#574)"
LoTerence Sep 26, 2024
02faf42
Merge pull request #582 from hackforla/revert-574-feature/lint-python
LoTerence Sep 26, 2024
4a4a2d5
added es lint and configured basic rules
irais-valenzuela Sep 30, 2024
34a2c8b
installed prettier and ran both linter and prettier and everything works
irais-valenzuela Sep 30, 2024
2e2b042
test mkdocs deployment
LoTerence Oct 1, 2024
ad71ae6
Merge pull request #591 from hackforla/feat/update-docs
LoTerence Oct 1, 2024
98542c5
move docs back into mkdocs folder
LoTerence Oct 1, 2024
4ff4ecb
configure gh-action for docs deployment
LoTerence Oct 1, 2024
a0efd8c
test mkdocs deployment
LoTerence Oct 1, 2024
bdc041b
finalize new mkdocs build
LoTerence Oct 2, 2024
623be42
change branch to develop
LoTerence Oct 2, 2024
c82790f
test mkdocs gh-action on a frontend change
LoTerence Oct 2, 2024
5d3b6a1
change branch to develop
LoTerence Oct 2, 2024
07106a1
enable watch mode in mkdocs compose config
LoTerence Oct 2, 2024
26a1742
init mkdocs documentation
LoTerence Oct 2, 2024
f5906a9
mkdocs edit instructions
LoTerence Oct 2, 2024
f6b5315
change name to not confuse with main
LoTerence Oct 2, 2024
e6b76f8
write documentation about mkdocs architecture
LoTerence Oct 2, 2024
1030865
Merge pull request #592 from hackforla/feat/fix-mkdocs
LoTerence Oct 2, 2024
79998a4
update resources docs
LoTerence Oct 4, 2024
e40c4f9
Merge pull request #593 from hackforla/docs/add-resources
LoTerence Oct 4, 2024
c782478
cleaned up linting issues and added tailwind plugin for eslint
irais-valenzuela Oct 7, 2024
9637168
added tailwind css rules
irais-valenzuela Oct 7, 2024
6b2c079
update mkdocs
LoTerence Oct 8, 2024
b9de609
Merge pull request #596 from hackforla/hackforla/develop
LoTerence Oct 8, 2024
df8717b
make one docker compose up command
LoTerence Oct 10, 2024
7b4b391
rm root poetry lock file
LoTerence Oct 10, 2024
bf6cbe2
update installation instructions
LoTerence Oct 10, 2024
1b47cac
Merge pull request #597 from hackforla/feat/fix-onboarding
LoTerence Oct 10, 2024
f36a75b
docs - updated resources page
LoTerence Oct 23, 2024
926ebdd
update python and django versions
LoTerence Oct 25, 2024
4636204
install black flake8 isort
LoTerence Oct 25, 2024
12da3f3
run black
LoTerence Oct 25, 2024
daaac67
configure flake8
LoTerence Oct 25, 2024
9b69553
configure isort
LoTerence Oct 25, 2024
9688865
run isort
LoTerence Oct 25, 2024
1cf89c3
fix flake8 linter issues
LoTerence Oct 25, 2024
0b2399b
Merge pull request #603 from hackforla/feature/lint-python-redo
LoTerence Oct 25, 2024
11f84ba
added classorder for tailwind in eslint rule and tested and it works
irais-valenzuela Oct 30, 2024
bf44469
added plugins for react hooks and jsx accessibility best practices
irais-valenzuela Oct 30, 2024
8caea4d
wrote linter documentation for liner config
irais-valenzuela Oct 30, 2024
e0094b3
added note about adding extensions to vscode
irais-valenzuela Oct 30, 2024
da28a37
Merge branch 'develop' of https://github.com/hackforla/CivicTechJobs …
irais-valenzuela Nov 5, 2024
4397667
Merge pull request #589 from irais-valenzuela/adding-prettier-and-esl…
irais-valenzuela Nov 6, 2024
f68f7cf
Merge branch 'main' into develop
LoTerence Nov 7, 2024
f42ff47
update resources docs
LoTerence Nov 8, 2024
9a55948
enable django admin
LoTerence Oct 25, 2024
70a7e9e
lint urls
LoTerence Nov 9, 2024
895557c
fix vite warning
LoTerence Nov 10, 2024
ab17510
install daphne
LoTerence Nov 10, 2024
0ccc884
configure security settings
LoTerence Nov 10, 2024
6ed9223
install whitenoise
LoTerence Nov 10, 2024
d7a08a4
ran npm audit fix
LoTerence Nov 10, 2024
b554122
refactor gitignore
LoTerence Nov 10, 2024
306745a
delete frontend/dist folder
LoTerence Nov 10, 2024
ee9e427
refactor gitignore
LoTerence Nov 10, 2024
c70ac3d
configure whitenoise
LoTerence Nov 10, 2024
47ac9ab
Configure security settings
LoTerence Nov 10, 2024
a87f31b
refactor dockerignore
LoTerence Nov 11, 2024
7b3e095
build + deploy staging environment
LoTerence Nov 11, 2024
fa74ce4
format dockerfiles
LoTerence Nov 11, 2024
faf0849
Merge pull request #613 from hackforla/feat/deploy-django
LoTerence Nov 11, 2024
3f79c1d
refactor Dockerfile
LoTerence Nov 14, 2024
1a56a9d
fix dockerignore dev
LoTerence Nov 14, 2024
19d349b
add git files
LoTerence Nov 14, 2024
d1b29ec
fix pgdb container exec root user error
LoTerence Nov 14, 2024
782c454
remove unused var
LoTerence Nov 14, 2024
c8a98c5
Merge pull request #4 from LoTerence/origin/deploy-dev
LoTerence Nov 14, 2024
e7a0191
Merge pull request #616 from LoTerence/develop
LoTerence Nov 14, 2024
f5f590c
fix dockerignore stage
LoTerence Nov 14, 2024
837f04d
do not include schema.yml
LoTerence Nov 14, 2024
0f6e186
Test django storage setting in AWS
LoTerence Nov 16, 2024
8f70052
Merge branch 'develop' of https://github.com/LoTerence/CivicTechJobs …
LoTerence Nov 16, 2024
ff52558
Merge pull request #617 from LoTerence/origin/develop
LoTerence Nov 16, 2024
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
44 changes: 38 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,41 @@
./node_modules
# stage dockerignore

dev
stage
.dockerignore
.git
.gitignore
mkdocs

# Environment files
**/.env
**/*.env
*venv/
**/.DS_store

# Dependency directories
**/node_modules

# Django
*.log
*.pot
*.pyc
**/__pycache__/
mkdocs/
/.env
**/db.sqlite3
**/data
**/media

# Docker
**/Dockerfile
**/*.Dockerfile
**/.dockerignore

# git
.git
**/.gitignore

# Builds
backend/frontend/static/vite_assets_dist
backend/staticfiles
backend/openapi-schema.yml

# vite
frontend/vite.config.*.timestamp-*
frontend/dist
6 changes: 3 additions & 3 deletions .github/workflows/jest-react-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
- name: Install modules
run: |
cd frontend
Expand Down
77 changes: 43 additions & 34 deletions .github/workflows/mkdocs-build.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
# Credit for code: https://github.com/mkdocs/mkdocs/discussions/2369#discussioncomment-625475
name: Build MkDocs site

on:
push:
branches:
- main
paths:
- "mkdocs/**/**.md"
- "mkdocs/mkdocs.yml"
workflow_dispatch:

jobs:
docs:
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install mkdocs
uses: actions/setup-python@v3
- name: Publish docs
run: |
pip install --upgrade pip && pip install setuptools mkdocs
pip install markdown==3.2.0
python mkdocs/mkdocs-config/setup.py develop
git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
cd mkdocs
cd mkdocs-config
python setup.py develop
cd ..
mkdocs gh-deploy
name: Build MkDocs site (develop)

on:
push:
branches:
# TODO: change to main when we merge develop to main
- develop
paths:
- "mkdocs/**/**.md"
- "mkdocs/mkdocs.yml"
workflow_dispatch:

permissions:
contents: write

jobs:
deploy-docs:
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install Dependencies
run: pip install \
mkdocs-material==9.1.17 \
mkdocs-autolinks-plugin==0.7.1
- name: Publish docs
run: |
cd mkdocs
mkdocs gh-deploy --force
36 changes: 22 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
node_modules
db.sqlite3
secret_key.txt
# Environment files
.env
dev.env
stage.env
__pycache__
.vscode/
secret_key.txt
*venv/
app/frontend/static/frontend/*
!app/frontend/static/frontend/.gitkeep
app/frontend/templates/frontend/*
!app/frontend/templates/frontend/.gitkeep
data/

**/super-linter.log
app/staticfiles
# Django #
*.log
*.pot
*.pyc
__pycache__
db.sqlite3
data
media

dev/linter.env
# IDEs
.vscode/
.idea
.DS_store

.idea
# linters
dev/linter.env
**/super-linter.log

# static build files
backend/frontend/static/vite_assets_dist
backend/staticfiles
backend/openapi-schema.yml
28 changes: 28 additions & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# backend dockerignore
# .dockerignore should be in the build context root

# Environment files
.env
*/*.env
*venv/
.DS_store

# Django
*.log
*.pot
*.pyc
**/__pycache__/
db.sqlite3
data
media

# Docker
.dockerignore

# git
.git
.gitignore

# Builds
frontend/static/vite_assets_dist/*
staticfiles
9 changes: 9 additions & 0 deletions backend/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[flake8]
max-line-length = 88
extend-ignore = E203, W503
exclude =
.git,
__pycache__,
migrations,
venv,
settings.py
8 changes: 5 additions & 3 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
frontend/static/frontend
frontend/templates/frontend
.idea/
.venv
.idea
DCIM
data
staticfiles
1 change: 1 addition & 0 deletions backend/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.4
File renamed without changes.
6 changes: 3 additions & 3 deletions backend/config/asgi.py → backend/backend/asgi.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
"""
ASGI config for config project.
ASGI config for backend project.

It exposes the ASGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/
"""

import os

from django.core.asgi import get_asgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "backend.settings")

application = get_asgi_application()
Loading