Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
772 commits
Select commit Hold shift + click to select a range
f5e5a62
⬆️ Bump requests from 2.31.0 to 2.32.0 in /backend (#1211)
dependabot[bot] May 23, 2024
6dbab0b
📝 Update release notes
invalid-email-address May 23, 2024
2b28db7
🐛 Fix welcome page to show logged-in user (#1218)
tomerb Jun 1, 2024
160826f
📝 Update release notes
invalid-email-address Jun 1, 2024
acc4fcb
✨ Add TanStack React Query devtools in dev build (#1217)
tomerb Jun 1, 2024
fd0ac3f
📝 Update release notes
invalid-email-address Jun 1, 2024
6b33f0c
📝 Update release-notes.md (#1220)
alejsdev Jun 1, 2024
7be45a5
📝 Update release notes
invalid-email-address Jun 1, 2024
f1db0da
♻️ Update client services (#1223)
alejsdev Jun 5, 2024
8e4d068
📝 Update release notes
invalid-email-address Jun 5, 2024
97f02f3
♻️ Update DeleteConfirmation component to use new service (#1224)
alejsdev Jun 5, 2024
87b8b62
📝 Update release notes
invalid-email-address Jun 5, 2024
577fc8a
🗃️ Add max_length validation for database models and input data (#1233)
estebanx64 Jun 19, 2024
9fae854
📝 Update release notes
invalid-email-address Jun 19, 2024
408e774
⬆️ Upgrade Traefik (#1241)
tiangolo Jun 26, 2024
7a88f22
📝 Update release notes
invalid-email-address Jun 26, 2024
2f8fda5
✨ Introduce pagination in items (#1239)
patrick91 Jun 27, 2024
a34d633
📝 Update release notes
invalid-email-address Jun 27, 2024
d24155d
🎨 Run biome after OpenAPI client generation (#1226)
tomerb Jun 27, 2024
7484aa3
📝 Update release notes
invalid-email-address Jun 27, 2024
d522605
🎨 Format and lint (#1243)
alejsdev Jun 27, 2024
84ed52f
📝 Update release notes
invalid-email-address Jun 27, 2024
594a6c6
♻️ Refactor recover password (#1242)
alejsdev Jun 28, 2024
8d04f5d
📝 Update release notes
invalid-email-address Jun 28, 2024
0b174d7
✨ Add mailcatcher configuration (#1244)
patrick91 Jun 30, 2024
ddbfb32
📝 Update release notes
invalid-email-address Jun 30, 2024
9288c0a
♻️ Update login.tsx to prevent error if username or password are empt…
jmondaud Jul 18, 2024
0d113de
📝 Update release notes
invalid-email-address Jul 18, 2024
19325b4
♻️ Abstraction of specific AddModal component out of the Navbar (#1246)
ajbloureiro Jul 18, 2024
0f713ec
📝 Update release notes
invalid-email-address Jul 18, 2024
203711b
🎨 Format frontend (#1262)
alejsdev Jul 22, 2024
9cf0c74
📝 Update release notes
invalid-email-address Jul 22, 2024
3508e7b
♻️ Replace deprecated utcnow() with now(timezone.utc) in utils module…
jalvarezz13 Jul 22, 2024
1fcdffc
📝 Update release notes
invalid-email-address Jul 22, 2024
7dccd06
⬆️ Bump urllib3 from 2.2.1 to 2.2.2 in /backend (#1235)
dependabot[bot] Jul 22, 2024
bda2b7a
📝 Update release notes
invalid-email-address Jul 22, 2024
bf16562
⬆️ Bump certifi from 2024.2.2 to 2024.7.4 in /backend (#1250)
dependabot[bot] Jul 22, 2024
5d7de16
📝 Update release notes
invalid-email-address Jul 22, 2024
f199c79
⬆️ Bump setuptools from 69.1.1 to 70.0.0 in /backend (#1255)
dependabot[bot] Jul 22, 2024
4b50560
📝 Update release notes
invalid-email-address Jul 22, 2024
3673cfa
♻️ Update form inputs width (#1263)
alejsdev Jul 22, 2024
b1a346a
📝 Update release notes
invalid-email-address Jul 22, 2024
14a91d9
♻️ Edit refactor db models to use UUID's instead of integer ID's (#1259)
estebanx64 Jul 22, 2024
8ffb249
📝 Update release notes
invalid-email-address Jul 22, 2024
11b3d9d
✨ Add initial setup for frontend / end-to-end tests with Playwright (…
alejsdev Jul 22, 2024
e3e4e04
📝 Update release notes
invalid-email-address Jul 22, 2024
97ce66e
✨ Add Login e2e tests (#1264)
alejsdev Jul 22, 2024
d6dbcaf
📝 Update release notes
invalid-email-address Jul 22, 2024
b45dfe9
✨ Add Sign Up and make `OPEN_USER_REGISTRATION=True` by default (#1265)
alejsdev Jul 23, 2024
6d46acb
📝 Update release notes
invalid-email-address Jul 23, 2024
526ccb5
🔧 Update Playwright config and tests to use env variables (#1266)
alejsdev Jul 23, 2024
f70b811
📝 Update release notes
invalid-email-address Jul 23, 2024
e56b399
✨ Add Sign Up e2e tests (#1268)
alejsdev Jul 29, 2024
25f670f
📝 Update release notes
invalid-email-address Jul 29, 2024
aa38302
✨ Add Reset Password e2e tests (#1270)
alejsdev Jul 30, 2024
60f2651
📝 Update release notes
invalid-email-address Jul 30, 2024
e264d34
🔧 Reuse database url from config in alembic setup (#1229)
patrick91 Jul 30, 2024
526e993
📝 Update release notes
invalid-email-address Jul 30, 2024
2f47f85
✨ Add User Settings e2e tests (#1271)
alejsdev Jul 30, 2024
397f446
📝 Update release notes
invalid-email-address Jul 30, 2024
ebf85bf
🔥 Remove `USERS_OPEN_REGISTRATION` config, make registration enabled …
alejsdev Jul 31, 2024
ac9fe20
📝 Update release notes
invalid-email-address Jul 31, 2024
0354a45
⬆️ Update SQLModel to version `>=0.0.21` (#1275)
alejsdev Jul 31, 2024
997947c
📝 Update release notes
invalid-email-address Jul 31, 2024
d35215f
👷 Update issue-manager.yml GitHub Action permissions (#1278)
tiangolo Aug 1, 2024
ad3959c
📝 Update release notes
invalid-email-address Aug 1, 2024
45f64c4
♻️ Refactor models to use cascade delete relationships (#1276)
alejsdev Aug 1, 2024
34bf99d
📝 Update release notes
invalid-email-address Aug 1, 2024
86e93fe
♻️ Add random password util and refactor tests (#1277)
alejsdev Aug 1, 2024
907037a
📝 Update release notes
invalid-email-address Aug 1, 2024
edc3d28
📝 Add End-to-End Testing with Playwright to frontend `README.md` (#1279)
alejsdev Aug 1, 2024
4335a78
📝 Update release notes
invalid-email-address Aug 1, 2024
de59928
♻️ Tweaks in frontend (#1273)
alejsdev Aug 1, 2024
92f183e
📝 Update release notes
invalid-email-address Aug 1, 2024
20c7932
♻️ Regenerate client to use UUID instead of id integers and update fr…
rehanabdul Aug 1, 2024
78f3c6e
📝 Update release notes
invalid-email-address Aug 1, 2024
5cde7f2
🚨 Fix Docker build warning (#1283)
erip Aug 2, 2024
5f4af6b
📝 Update release notes
invalid-email-address Aug 2, 2024
aa2bdf9
🔧 Update deploy workflows to exclude the main repository (#1284)
alejsdev Aug 2, 2024
e13be8f
📝 Update release notes
invalid-email-address Aug 2, 2024
75a9025
📝 Update links from tiangolo repo to fastapi org repo (#1285)
tiangolo Aug 2, 2024
2c784d8
📝 Update release notes
invalid-email-address Aug 2, 2024
64c0770
🔖 Release version 0.7.0
tiangolo Aug 2, 2024
72e5b4f
👷 Update issue-manager (#1288)
tiangolo Aug 3, 2024
8f2f9c6
📝 Update release notes
invalid-email-address Aug 3, 2024
f07bc4b
👷 Add GitHub Action add-to-project (#1297)
tiangolo Aug 13, 2024
d31ee0f
📝 Update release notes
invalid-email-address Aug 13, 2024
9c56a96
👷 Add GitHub Action labeler (#1298)
tiangolo Aug 13, 2024
ebab88d
📝 Update release notes
invalid-email-address Aug 13, 2024
3365d7e
♻️ Remove duplicated information in the ItemCreate model (#1287)
jjaakko Aug 13, 2024
c3ec868
📝 Update release notes
invalid-email-address Aug 13, 2024
833e2c0
👷 Add GitHub Action label-checker (#1299)
tiangolo Aug 13, 2024
33f23bc
📝 Update release notes
invalid-email-address Aug 13, 2024
f51c0a9
👷 Update GitHub Action labeler permissions (#1300)
tiangolo Aug 13, 2024
9dccb2e
📝 Update release notes
invalid-email-address Aug 13, 2024
17080fc
👷 Update GitHub Action labeler dependencies (#1302)
tiangolo Aug 14, 2024
df977ab
📝 Update release notes
invalid-email-address Aug 14, 2024
b17291f
:arrow_up: Bump axios from 1.6.2 to 1.7.4 in /frontend (#1301)
dependabot[bot] Aug 14, 2024
1605f49
📝 Update release notes
invalid-email-address Aug 14, 2024
a9437fb
👷 Update GitHub Action labeler to add only one label (#1304)
tiangolo Aug 14, 2024
60b20fa
📝 Update release notes
invalid-email-address Aug 14, 2024
e5077bd
👷 Do not sync labels as it overrides manually added labels (#1307)
tiangolo Aug 15, 2024
5a730c5
📝 Update release notes
invalid-email-address Aug 15, 2024
978dbdd
👷 Update configs for labeler (#1308)
tiangolo Aug 15, 2024
6ec1bed
📝 Update release notes
invalid-email-address Aug 15, 2024
41d659c
📝 Add Email Templates to `backend/README.md` (#1311)
alejsdev Aug 17, 2024
25fd6ae
📝 Update release notes
invalid-email-address Aug 17, 2024
6666071
👷 Update `latest-changes` GitHub Action (#1315)
tiangolo Aug 26, 2024
b5a8a47
📝 Update release notes
invalid-email-address Aug 26, 2024
392719f
👷 Update `.github/labeler.yml` (#1321)
alejsdev Aug 29, 2024
a75c5de
📝 Update release notes
invalid-email-address Aug 29, 2024
0fd2777
🐛 Fix in `.github/labeler.yml` (#1322)
alejsdev Aug 29, 2024
0090e86
📝 Update release notes
invalid-email-address Aug 29, 2024
cac962e
👷🏻 Auto-generate frontend client (#1320)
alejsdev Aug 29, 2024
e506d28
📝 Update release notes
invalid-email-address Aug 29, 2024
2352d30
set include-hidden-files to true for actions/upload-artifact@v4 (#1327)
svlandeg Sep 2, 2024
07f5539
📝 Update release notes
invalid-email-address Sep 2, 2024
e6bf8c3
👷 Update `issue-manager.yml` (#1329)
tiangolo Sep 7, 2024
6699631
📝 Update release notes
invalid-email-address Sep 7, 2024
6528194
👷 Improve playwright CI job (#1335)
patrick91 Sep 12, 2024
bdb283f
📝 Update release notes
invalid-email-address Sep 12, 2024
a5ea4c4
🔥 Enable support for Arm Docker images in Mac, remove old patch (#1341)
tiangolo Sep 16, 2024
fc90d2e
📝 Update release notes
invalid-email-address Sep 16, 2024
0373af9
🩺 Add DB healthcheck (#1342)
tiangolo Sep 16, 2024
7da0d7d
📝 Update release notes
invalid-email-address Sep 16, 2024
5a0ce0c
🔥 Simplify Traefik, remove www-redirects that add complexity (#1343)
tiangolo Sep 16, 2024
0c0b942
📝 Update release notes
invalid-email-address Sep 16, 2024
36dc920
♻️ Simplify domains with `api.example.com` for API and `dashboard.exa…
tiangolo Sep 19, 2024
0898ffd
📝 Update release notes
invalid-email-address Sep 19, 2024
8922f94
♻️ Include `FRONTEND_HOST` in CORS origins by default (#1348)
tiangolo Sep 20, 2024
3a5d15b
📝 Update release notes
invalid-email-address Sep 20, 2024
f1055cc
⬆️ Upgrade FastAPI (#1349)
tiangolo Sep 20, 2024
14c83b5
📝 Update release notes
invalid-email-address Sep 20, 2024
034bd2f
♻️ Refactor prestart (migrations), move that to its own container (#1…
tiangolo Sep 20, 2024
7970dc9
📝 Update release notes
invalid-email-address Sep 20, 2024
102f241
🚚 Move location of scripts to simplify file structure (#1352)
tiangolo Sep 22, 2024
3016002
📝 Update release notes
invalid-email-address Sep 22, 2024
77df4c2
🔧 Use plain base official Python Docker image (#1351)
tiangolo Sep 22, 2024
7632c25
📝 Update release notes
invalid-email-address Sep 22, 2024
1ea59e5
♻️ Use Docker Compose `watch` (#1354)
tiangolo Sep 22, 2024
b113d27
📝 Update release notes
invalid-email-address Sep 22, 2024
fdac322
🔥 Remove logic for development dependencies and Jupyter, it was never…
tiangolo Sep 23, 2024
e7bee72
📝 Update release notes
invalid-email-address Sep 23, 2024
cdf2198
⬆️ Migrate from Poetry to uv (#1356)
tiangolo Sep 23, 2024
775d9ac
📝 Update release notes
invalid-email-address Sep 23, 2024
8e310ca
💡 Add comments to Dockerfile with uv references (#1357)
tiangolo Sep 23, 2024
b3e6c36
📝 Update release notes
invalid-email-address Sep 23, 2024
98da2b4
👷 Add GitHub Actions workflow to lint backend apart from tests (#1358)
tiangolo Sep 23, 2024
1e1307a
📝 Update release notes
invalid-email-address Sep 23, 2024
717bb2d
♻️ Update settings to use top level `.env` file (#1359)
tiangolo Sep 23, 2024
4f61016
📝 Update release notes
invalid-email-address Sep 23, 2024
19505a2
🔨 Update `generate-client.sh` script, make it fail on errors, fix gen…
tiangolo Sep 23, 2024
8b4b5b2
📝 Update release notes
invalid-email-address Sep 23, 2024
5109511
👷 Run tests from Python environment (with `uv`), not from Docker cont…
tiangolo Sep 23, 2024
dfec6d5
📝 Update release notes
invalid-email-address Sep 23, 2024
96d4209
👷 Use `uv` for Python env to generate client (#1362)
tiangolo Sep 23, 2024
1ed5cfc
📝 Update release notes
invalid-email-address Sep 23, 2024
521deaf
👷 Update GitHub Actions format (#1363)
tiangolo Sep 23, 2024
d55066f
📝 Update release notes
invalid-email-address Sep 23, 2024
47375c3
👷 Use uv cache on GitHub Actions (#1366)
tiangolo Sep 24, 2024
0bf08cb
📝 Update release notes
invalid-email-address Sep 24, 2024
f6fcd76
🔖 Release version 0.7.1
tiangolo Sep 27, 2024
7b89ece
👷 Generate and commit client only on same repo PRs, on forks, show th…
tiangolo Sep 27, 2024
66b3be8
📝 Update release notes
invalid-email-address Sep 27, 2024
b762b1b
💡 Remove unnecessary comment (#1260)
sebhani Sep 27, 2024
b8a0dff
📝 Update release notes
invalid-email-address Sep 27, 2024
f59061f
👷 Tweak generate client to error out if there are errors (#1377)
tiangolo Sep 27, 2024
605d7d6
📝 Update release notes
invalid-email-address Sep 27, 2024
a96b7f3
🔧 Run task by the same Python environment used to run Copier (#1157)
waketzheng Sep 27, 2024
5a4da9e
📝 Update release notes
invalid-email-address Sep 27, 2024
26088ca
🔧 Add `ENV PYTHONUNBUFFERED=1` to log output directly to Docker (#1378)
tiangolo Sep 27, 2024
b9db035
📝 Update release notes
invalid-email-address Sep 27, 2024
130adc9
⬆ Bump tiangolo/issue-manager from 0.5.0 to 0.5.1 (#1332)
dependabot[bot] Sep 27, 2024
b9dbef1
📝 Update release notes
invalid-email-address Sep 27, 2024
bf8cea9
👷 Update pre-commit end-of-file-fixer hook to exclude email-templates…
goabonga Sep 27, 2024
5db8a2b
📝 Update release notes
invalid-email-address Sep 27, 2024
ce03c88
⬆ Bump astral-sh/setup-uv from 2 to 3 (#1364)
dependabot[bot] Sep 27, 2024
de2dbdc
🔊 Enable logging for email utils by default (#1374)
ihmily Sep 27, 2024
09f793a
📝 Update release notes
invalid-email-address Sep 27, 2024
fe28a53
📝 Update release notes
invalid-email-address Sep 27, 2024
7078491
♻️ Refactored code to use encryption algorithm name from settings for…
sameeramin Sep 27, 2024
8b486f8
📝 Update release notes
invalid-email-address Sep 27, 2024
7a3852e
⬆️ Bump rollup from 4.6.1 to 4.22.5 in /frontend (#1379)
dependabot[bot] Sep 30, 2024
9eda943
📝 Update release notes
invalid-email-address Sep 30, 2024
763cbd2
♻️ Add PaginationFooter component (#1381)
saltie2193 Oct 3, 2024
72cf68d
📝 Update release notes
invalid-email-address Oct 3, 2024
99ddad0
🔧 Add .auth playwright folder to .gitignore (#1383)
justin-p Oct 3, 2024
364d9d9
📝 Update release notes
invalid-email-address Oct 3, 2024
c2e747c
👷 Update `labeler.yml` (#1388)
tiangolo Oct 7, 2024
5b1d477
📝 Update release notes
invalid-email-address Oct 7, 2024
4bfeb62
📝 Add MailCatcher to `development.md` (#1387)
tobiase Oct 12, 2024
e05f520
📝 Update release notes
invalid-email-address Oct 12, 2024
7faa409
👷 Fix smokeshow, checkout files on CI (#1395)
tiangolo Oct 12, 2024
bc6c2c9
📝 Update release notes
invalid-email-address Oct 12, 2024
ebcc238
👷 Update issue manager workflow (#1398)
alejsdev Oct 14, 2024
8bcfbea
📝 Update release notes
invalid-email-address Oct 14, 2024
275aba6
👷 Improve Playwright CI speed: sharding (paralel runs), run in Docker…
tiangolo Oct 25, 2024
c17236d
📝 Update release notes
invalid-email-address Oct 25, 2024
dc9dea5
📝 Update `deployment.md`, instructions to install GitHub Runner in no…
tiangolo Nov 1, 2024
6e38f60
📝 Update release notes
invalid-email-address Nov 1, 2024
fcc587d
⬆ Bump tiangolo/latest-changes from 0.3.1 to 0.3.2 (#1418)
dependabot[bot] Nov 8, 2024
5342f96
📝 Update release notes
invalid-email-address Nov 8, 2024
9e3c3c2
✨ Migrate to latest openapi-ts (#1430)
patrick91 Nov 27, 2024
bc85640
📝 Update release notes
invalid-email-address Nov 27, 2024
ace6839
♻️ Remove modify id script in favor of openapi-ts config (#1434)
patrick91 Nov 27, 2024
858d1f6
📝 Update release notes
invalid-email-address Nov 27, 2024
9974cfc
✨ Add private, local only, API for usage in E2E tests (#1429)
patrick91 Dec 2, 2024
1271dbd
📝 Update release notes
invalid-email-address Dec 2, 2024
36d5c9f
🎨 Move `prefix` and `tags` to routers (#1439)
patrick91 Dec 2, 2024
a07e0f3
📝 Update release notes
invalid-email-address Dec 2, 2024
c201db4
⬆ Bump astral-sh/setup-uv from 3 to 4 (#1433)
dependabot[bot] Dec 10, 2024
39572e6
📝 Update release notes
invalid-email-address Dec 10, 2024
50647c4
⬆ Bump astral-sh/setup-uv from 4 to 5 (#1453)
dependabot[bot] Dec 21, 2024
2be48d6
📝 Update release notes
invalid-email-address Dec 21, 2024
e20aada
📝 Update frontend/README.md to also remove Playwright when removing F…
youben11 Dec 21, 2024
49b52af
📝 Update release notes
invalid-email-address Dec 21, 2024
0477610
⬆️ Update Dockerfile to use uv version 0.5.11 (#1454)
alejsdev Jan 5, 2025
ced4c05
📝 Update release notes
invalid-email-address Jan 5, 2025
fe000a4
🧑‍🔧 Replace correct value for 'htmlFor' (#1456)
wesenbergg Jan 6, 2025
c05e344
📝 Update release notes
invalid-email-address Jan 6, 2025
c71fdc0
Path models and path routes are included in backend. Working towards …
CKennte11 Jan 29, 2025
a697d3a
minor changes to configuration
CKennte11 Jan 30, 2025
32dbf36
Add missing path and step models migration
CKennte11 Jan 31, 2025
7ba177d
missed most files from the previous commit
CKennte11 Jan 31, 2025
7db0b04
last alembic migration fixed
CKennte11 Jan 31, 2025
61932f7
Revert "last alembic migration fixed"
CKennte11 Jan 31, 2025
ef89c8a
Add path and step models migration with correct parent revision
CKennte11 Jan 31, 2025
7b60b04
before implementing nested routing
CKennte11 Jan 31, 2025
e3d1e5c
progress in implementing the paths into the template
CKennte11 Jan 31, 2025
e8472aa
routing works from paths-menu.
CKennte11 Feb 2, 2025
69c19c0
Prototype Create Interface - not yet linked to API
CKennte11 Feb 2, 2025
6943436
creator UI can save paths in database
CKennte11 Feb 2, 2025
463d244
creator form is linked to POST route.
CKennte11 Feb 3, 2025
c12b4a7
Color and logo changed - favicon still missing.
CKennte11 Feb 4, 2025
2f54f69
edit page implemented as copy of create page that calls the current i…
CKennte11 Feb 4, 2025
dc9a39a
editing paths is implemented. Re-transforming from json posed a riddle.
CKennte11 Feb 4, 2025
8f6b002
Delete button is connected to backend.
CKennte11 Feb 4, 2025
15fdc44
learn route added, but initial chat not yet set up
CKennte11 Feb 4, 2025
0c5532b
empty shell for chats set up
CKennte11 Feb 4, 2025
37d90e9
backend for streming works
CKennte11 Feb 5, 2025
c44213c
fix: update database schema for path and step models
CKennte11 Feb 6, 2025
5de97bd
TanStack Router cleaned up - twas a journey
CKennte11 Feb 7, 2025
1929f18
chore: update gitignore
CKennte11 Feb 7, 2025
2f5fa23
chore: add .env.example template
CKennte11 Feb 7, 2025
dc813b3
refactor(api): consolidate API base URL configuration
CKennte11 Feb 7, 2025
f57c9f0
previous commit did not have everything staged. Content remains same.
CKennte11 Feb 7, 2025
37f13be
feat: add editorconfig and add vscode and DS_Store to gitignore
JangasCodingplace Feb 10, 2025
e377469
feat: rm cached files
JangasCodingplace Feb 10, 2025
e56127b
Merge pull request #1 from CKennte11/jg/fix-gitignore
CKennte11 Feb 10, 2025
8fb2fe9
feat: implement docker setup
JangasCodingplace Feb 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .copier/.copier-answers.yml.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ _copier_answers|to_json -}}
26 changes: 26 additions & 0 deletions .copier/update_dotenv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from pathlib import Path
import json

# Update the .env file with the answers from the .copier-answers.yml file
# without using Jinja2 templates in the .env file, this way the code works as is
# without needing Copier, but if Copier is used, the .env file will be updated
root_path = Path(__file__).parent.parent
answers_path = Path(__file__).parent / ".copier-answers.yml"
answers = json.loads(answers_path.read_text())
env_path = root_path / ".env"
env_content = env_path.read_text()
lines = []
for line in env_content.splitlines():
for key, value in answers.items():
upper_key = key.upper()
if line.startswith(f"{upper_key}="):
if " " in value:
content = f"{upper_key}={value!r}"
else:
content = f"{upper_key}={value}"
new_line = line.replace(line, content)
lines.append(new_line)
break
else:
lines.append(line)
env_path.write_text("\n".join(lines))
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.{diff,md}]
trim_trailing_whitespace = false
max_line_length = 70

[*.py]
max_line_length = 100
indent_size = 4
49 changes: 49 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Domain
# This would be set to the production domain with an env var on deployment
# used by Traefik to transmit traffic and acquire TLS certificates
DOMAIN=localhost
# To test the local Traefik config
# DOMAIN=localhost.tiangolo.com

# Used by the backend to generate links in emails to the frontend
FRONTEND_HOST=http://localhost:5173
# In staging and production, set this env var to the frontend host, e.g.
# FRONTEND_HOST=https://dashboard.example.com

# Environment: local, staging, production
ENVIRONMENT=local

PROJECT_NAME="TreadEd"
STACK_NAME=treaded

# Backend
BACKEND_CORS_ORIGINS="http://localhost,http://localhost:5173,https://localhost,https://localhost:5173,http://localhost.tiangolo.com"
SECRET_KEY=your-secret-key-here
[email protected]
FIRST_SUPERUSER_PASSWORD=change-this-password

# Emails
SMTP_HOST=smtp.example.com
SMTP_USER=your-smtp-user
SMTP_PASSWORD=your-smtp-password
[email protected]
SMTP_TLS=True
SMTP_SSL=False
SMTP_PORT=465

# Postgres
POSTGRES_SERVER=localhost
POSTGRES_PORT=5432
POSTGRES_DB=treaded_app
POSTGRES_USER=postgres
POSTGRES_PASSWORD=change-this-password

SENTRY_DSN=

# Configure these with your own Docker registry images
DOCKER_IMAGE_BACKEND=backend
DOCKER_IMAGE_FRONTEND=frontend

# LLM API-Authentication
ANTHROPIC_API_KEY=your-anthropic-api-key
OPENAI_API_KEY=your-openai-api-key
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
*.sh text eol=lf
118 changes: 118 additions & 0 deletions .github/DISCUSSION_TEMPLATE/questions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
labels: [question]
body:
- type: markdown
attributes:
value: |
Thanks for your interest in this project! 🚀
Please follow these instructions, fill every question, and do every step. 🙏
I'm asking this because answering questions and solving problems in GitHub is what consumes most of the time.
I end up not being able to add new features, fix bugs, review pull requests, etc. as fast as I wish because I have to spend too much time handling questions.
All that, on top of all the incredible help provided by a bunch of community members, that give a lot of their time to come here and help others.
That's a lot of work, but if more users came to help others like them just a little bit more, it would be much less effort for them (and you and me 😅).
By asking questions in a structured way (following this) it will be much easier to help you.
And there's a high chance that you will find the solution along the way and you won't even have to submit it and wait for an answer. 😎
As there are too many questions, I'll have to discard and close the incomplete ones. That will allow me (and others) to focus on helping people like you that follow the whole process and help us help you. 🤓
- type: checkboxes
id: checks
attributes:
label: First Check
description: Please confirm and check all the following options.
options:
- label: I added a very descriptive title here.
required: true
- label: I used the GitHub search to find a similar question and didn't find it.
required: true
- label: I searched in the documentation/README.
required: true
- label: I already searched in Google "How to do X" and didn't find any information.
required: true
- label: I already read and followed all the tutorial in the docs/README and didn't find an answer.
required: true
- type: checkboxes
id: help
attributes:
label: Commit to Help
description: |
After submitting this, I commit to one of:
* Read open questions until I find 2 where I can help someone and add a comment to help there.
* I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
options:
- label: I commit to help with one of those options 👆
required: true
- type: textarea
id: example
attributes:
label: Example Code
description: |
Please add a self-contained, [minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) with your use case.
If I (or someone) can copy it, run it, and see it right away, there's a much higher chance I (or someone) will be able to help you.
placeholder: |
Write your example code here.
render: Text
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: |
What is the problem, question, or error?
Write a short description telling me what you are doing, what you expect to happen, and what is currently happening.
placeholder: |
* Open the browser and call the endpoint `/`.
* It returns a JSON with `{"message": "Hello World"}`.
* But I expected it to return `{"message": "Hello Morty"}`.
validations:
required: true
- type: dropdown
id: os
attributes:
label: Operating System
description: What operating system are you on?
multiple: true
options:
- Linux
- Windows
- macOS
- Other
validations:
required: true
- type: textarea
id: os-details
attributes:
label: Operating System Details
description: You can add more details about your operating system here, in particular if you chose "Other".
validations:
required: true
- type: input
id: python-version
attributes:
label: Python Version
description: |
What Python version are you using?
You can find the Python version with:
```bash
python --version
```
validations:
required: true
- type: textarea
id: context
attributes:
label: Additional Context
description: Add any additional context information or screenshots you think are useful.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [tiangolo]
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
blank_issues_enabled: false
contact_links:
- name: Security Contact
about: Please report security vulnerabilities to [email protected]
- name: Question or Problem
about: Ask a question or ask about a problem in GitHub Discussions.
url: https://github.com/fastapi/full-stack-fastapi-template/discussions/categories/questions
- name: Feature Request
about: To suggest an idea or ask about a feature, please start with a question saying what you would like to achieve. There might be a way to do it already.
url: https://github.com/fastapi/full-stack-fastapi-template/discussions/categories/questions
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/privileged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Privileged
description: You are @tiangolo or he asked you directly to create an issue here. If not, check the other options. 👇
body:
- type: markdown
attributes:
value: |
Thanks for your interest in this project! 🚀
If you are not @tiangolo or he didn't ask you directly to create an issue here, please start the conversation in a [Question in GitHub Discussions](https://github.com/tiangolo/full-stack-fastapi-template/discussions/categories/questions) instead.
- type: checkboxes
id: privileged
attributes:
label: Privileged issue
description: Confirm that you are allowed to create an issue here.
options:
- label: I'm @tiangolo or he asked me directly to create an issue here.
required: true
- type: textarea
id: content
attributes:
label: Issue Content
description: Add the content of the issue here.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
# GitHub Actions
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
commit-message:
prefix: ⬆
# Python
- package-ecosystem: pip
directory: /
schedule:
interval: daily
commit-message:
prefix: ⬆
25 changes: 25 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
docs:
- all:
- changed-files:
- any-glob-to-any-file:
- '**/*.md'
- all-globs-to-all-files:
- '!frontend/**'
- '!backend/**'
- '!.github/**'
- '!scripts/**'
- '!.gitignore'
- '!.pre-commit-config.yaml'

internal:
- all:
- changed-files:
- any-glob-to-any-file:
- .github/**
- scripts/**
- .gitignore
- .pre-commit-config.yaml
- all-globs-to-all-files:
- '!./**/*.md'
- '!frontend/**'
- '!backend/**'
18 changes: 18 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Add to Project

on:
pull_request_target:
issues:
types:
- opened
- reopened

jobs:
add-to-project:
name: Add to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/fastapi/projects/2
github-token: ${{ secrets.PROJECTS_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to Production

on:
release:
types:
- published

jobs:
deploy:
# Do not deploy in the main repository, only in user projects
if: github.repository_owner != 'fastapi'
runs-on:
- self-hosted
- production
env:
ENVIRONMENT: production
DOMAIN: ${{ secrets.DOMAIN_PRODUCTION }}
STACK_NAME: ${{ secrets.STACK_NAME_PRODUCTION }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
FIRST_SUPERUSER: ${{ secrets.FIRST_SUPERUSER }}
FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
EMAILS_FROM_EMAIL: ${{ secrets.EMAILS_FROM_EMAIL }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- run: docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_PRODUCTION }} build
- run: docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_PRODUCTION }} up -d
32 changes: 32 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to Staging

on:
push:
branches:
- master

jobs:
deploy:
# Do not deploy in the main repository, only in user projects
if: github.repository_owner != 'fastapi'
runs-on:
- self-hosted
- staging
env:
ENVIRONMENT: staging
DOMAIN: ${{ secrets.DOMAIN_STAGING }}
STACK_NAME: ${{ secrets.STACK_NAME_STAGING }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
FIRST_SUPERUSER: ${{ secrets.FIRST_SUPERUSER }}
FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
EMAILS_FROM_EMAIL: ${{ secrets.EMAILS_FROM_EMAIL }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- run: docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_STAGING }} build
- run: docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_STAGING }} up -d
Loading
Loading