Skip to content

Commit f64f89e

Browse files
committed
feat(project): initialize project structure with backend and frontend setup
0 parents  commit f64f89e

30 files changed

+1149
-0
lines changed

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{py,c,cpp,h,ini}]
12+
indent_style = space
13+
indent_size = 4
14+
15+
[*.{html,css,scss,js,json,yml,yaml,xml}]
16+
indent_style = space
17+
indent_size = 2
18+
19+
[*.rst]
20+
indent_size = 3
21+
22+
[*.svg]
23+
indent_size = 2
24+
25+
[*.md]
26+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
* text=auto
2+
3+
*.py text
4+
*.pyx text
5+
*.pyd text
6+
*.cfg text
7+
*.md text
8+
*.rst text
9+
*.txt text
10+
*.json text
11+
*.yml text
12+
*.yaml text
13+
*.html text
14+
*.csv text
15+
*.xls binary
16+
*.xlsx binary

.github/logo.svg

Lines changed: 4 additions & 0 deletions
Loading

.github/workflows/code_atlas_flow.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Code Atlas Flow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
backend:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
max-parallel: 4
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.11.7"
24+
25+
- name: Install dependencies
26+
run: |
27+
cd backend
28+
python -m pip install --upgrade pip
29+
pip install -r requirements.txt
30+
31+
- name: Lint with Ruff
32+
run: |
33+
cd backend
34+
pip install ruff
35+
ruff check .
36+
37+
# - name: Django testing
38+
# run: |
39+
# python manage.py test
40+
# env:
41+
# SECRET_KEY: ${{ secrets.SECRET_KEY }}
42+
43+
# TODO: Add deployment steps
44+
45+
frontend:
46+
runs-on: ubuntu-latest
47+
strategy:
48+
max-parallel: 4
49+
steps:
50+
- name: Checkout repository
51+
uses: actions/checkout@v4
52+
53+
- name: Set up Node.js
54+
uses: actions/setup-node@v3
55+
with:
56+
node-version: '20'
57+
58+
- name: Install pnpm
59+
run: |
60+
npm install -g pnpm
61+
62+
- name: Install frontend dependencies
63+
run: |
64+
cd frontend
65+
pnpm install
66+
67+
- name: Run frontend lint
68+
run: |
69+
cd frontend
70+
pnpm run lint
71+
72+
# - name: Run frontend build
73+
# run: |
74+
# cd frontend
75+
# pnpm run build
76+
77+
# TODO: Add deployment steps

.gitignore

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Project
2+
TODO.md
3+
db.sqlite3
4+
.env
5+
desktop.ini
6+
backend/static/admin
7+
backend/static/cloudinary
8+
backend/static/drf_spectacular_sidecar
9+
backend/static/rest_framework
10+
backend/static/import_export
11+
node_modules
12+
pnpm-lock.yaml
13+
package-lock.json
14+
15+
# Backend
16+
17+
# Byte-compiled / optimized / DLL files
18+
__pycache__/
19+
*.py[cod]
20+
*$py.class
21+
22+
# Distribution / packaging
23+
.Python
24+
build/
25+
develop-eggs/
26+
dist/
27+
downloads/
28+
eggs/
29+
.eggs/
30+
lib64/
31+
parts/
32+
sdist/
33+
var/
34+
wheels/
35+
share/*python-wheels/
36+
*.egg-info/
37+
.installed.cfg
38+
*.egg
39+
MANIFEST
40+
41+
# Unit test / coverage reports
42+
.coveragerc
43+
htmlcov/
44+
.tox/
45+
.nox/
46+
.cache
47+
nosetests.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# PEP 582
55+
__pypackages__/
56+
57+
# Environments
58+
.env
59+
.venv
60+
env/
61+
venv/
62+
ENV/
63+
env.bak/
64+
venv.bak/
65+
66+
# Frontend
67+
68+
# dependencies
69+
frontend/node_modules
70+
frontend/.pnp
71+
.pnp.js
72+
.yarn/install-state.gz
73+
74+
# testing
75+
frontend//coverage
76+
77+
# next.js
78+
frontend/.next/
79+
frontend/out/
80+
81+
# production
82+
frontend/build
83+
84+
# misc
85+
.DS_Store
86+
*.pem
87+
88+
# debug
89+
npm-debug.log*
90+
yarn-debug.log*
91+
yarn-error.log*
92+
93+
# local env files
94+
.env*.local
95+
96+
# vercel
97+
.vercel
98+
99+
# typescript
100+
*.tsbuildinfo
101+
next-env.d.ts

.pre-commit-config.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
exclude: "^/migrations/"
2+
default_stages: [pre-commit]
3+
4+
default_language_version:
5+
python: python3.13
6+
7+
repos:
8+
# Backend
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: v5.0.0
11+
hooks:
12+
- id: trailing-whitespace
13+
- id: end-of-file-fixer
14+
- id: check-json
15+
- id: check-xml
16+
- id: check-yaml
17+
- id: debug-statements
18+
- id: check-builtin-literals
19+
- id: check-case-conflict
20+
- id: check-docstring-first
21+
- id: detect-private-key
22+
23+
- repo: https://github.com/adamchainz/django-upgrade
24+
rev: "1.24.0"
25+
hooks:
26+
- id: django-upgrade
27+
args: ["--target-version", "5.0"]
28+
29+
- repo: https://github.com/astral-sh/ruff-pre-commit
30+
rev: v0.11.4
31+
hooks:
32+
- id: ruff
33+
34+
# Frontend
35+
- repo: https://github.com/pre-commit/mirrors-prettier
36+
rev: v3.1.0
37+
hooks:
38+
- id: prettier
39+
additional_dependencies: [prettier]
40+
files: \.(js|jsx|ts|tsx)$
41+
42+
ci:
43+
autoupdate_schedule: weekly
44+
skip: []
45+
submodules: false

.vscode/settings.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"statusBarItem.remoteForeground": "#000000",
4+
"titleBar.inactiveForeground": "#000000",
5+
"titleBar.inactiveBackground": "#ffffff",
6+
"selection.background": "#ffffff",
7+
"textLink.foreground": "#ffffff",
8+
"textLink.activeForeground": "#ffffff",
9+
"button.background": "#ffffff",
10+
"inputOption.activeBorder": "#ffffff",
11+
"inputOption.activeBackground": "#ffffff",
12+
"inputOption.activeForeground": "#ffffff",
13+
"inputValidation.warningBorder": "#ffffff",
14+
"scrollbarSlider.hoverBackground": "#ffffff",
15+
"scrollbarSlider.activeBackground": "#ffffff",
16+
"badge.background": "#ffffff",
17+
"progressBar.background": "#ffffff",
18+
"list.activeSelectionForeground": "#ffffff",
19+
"list.highlightForeground": "#ffffff",
20+
"list.inactiveSelectionForeground": "#ffffff",
21+
"listFilterWidget.outline": "#ffffff",
22+
"activityBar.foreground": "#ffffff",
23+
"activityBarBadge.background": "#ffffff",
24+
"sideBarSectionHeader.foreground": "#ffffff",
25+
"tab.activeBorder": "#ffffff",
26+
"editorLineNumber.activeForeground": "#ffffff",
27+
"editorCursor.foreground": "#ffffff",
28+
"editor.findMatchBackground": "#ffffff",
29+
"editorLink.activeForeground": "#ffffff",
30+
"editorOverviewRuler.warningForeground": "#ffffff",
31+
"editorWarning.foreground": "#ffffff",
32+
"editorSuggestWidget.highlightForeground": "#ffffff",
33+
"statusBarItem.prominentHoverBackground": "#ffffff",
34+
"statusBarItem.remoteBackground": "#ffffff",
35+
"extensionButton.prominentBackground": "#ffffff",
36+
"debugConsoleInputIcon.foreground": "#ffffff",
37+
}
38+
}

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Tyrone José

0 commit comments

Comments
 (0)