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

chore(deps): bump aws-actions/amazon-ecr-login from 1 to 2 #3

Open
wants to merge 406 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
406 commits
Select commit Hold shift + click to select a range
ef59ad1
wip
Mar 11, 2023
73cdb05
fix: cleanup
Mar 11, 2023
84af1da
wip: begin refactoring for 2.0
Mar 21, 2023
060f1b1
updated DI
Mar 21, 2023
9481d8d
Merge pull request #6 from cofin/teams
cofin Mar 21, 2023
461e171
fix: updates configuration to use recently merged response_cache & st…
Mar 22, 2023
b0089bf
fix: call uvicorn as a subprocess.
Mar 22, 2023
c2d935c
fix: update forward refs. fixes 1 of 2 issues for inserts
Mar 22, 2023
b405aa3
fix: correctly call model from dict for all methods
Mar 22, 2023
1a32a2c
fix: UUID serializer issue
Mar 22, 2023
3310e37
fix: updated provide user
Mar 22, 2023
1498dfe
fix: additional 2.0 adjustments
Mar 25, 2023
ea7f1f5
fix: move `joined_at` and `verified_at` to datetime
Mar 25, 2023
2fa75a3
fix: return User schema instead of user model
Mar 25, 2023
ebbcce5
fix: `Request` has no attribute `to_dict` error
Mar 25, 2023
3edd174
feat: moves to signature provider
Mar 25, 2023
f09c144
feat: utilize the `ruff` and `pre-commit` configurations from `starlite`
Mar 25, 2023
fc46726
bump version
Mar 25, 2023
440009d
Merge pull request #7 from cofin/current-user-fix
cofin Mar 25, 2023
3e4a4ad
feat: new controllers and commands (#8)
cofin Mar 26, 2023
ec798ad
fix: adds worker command and updated CLI markdown
Mar 26, 2023
7ae8411
feat: adds exists and updated type check logic
Mar 28, 2023
257260d
fix: remove extra tag from User controller
Mar 28, 2023
5997f90
FIX: change 401 to 403 for insufficient privileges (#10)
bpereto Mar 29, 2023
95f19b3
FIX: fields for Before and After filters (#9)
bpereto Mar 29, 2023
5c5874b
feat: `litestar` rebrand (#11)
cofin Apr 7, 2023
b2b87d4
feat: team controller and service updates (#12)
cofin Apr 12, 2023
d7f0e41
fix: prevent duplicate log messages from the `sqlalchemy.pool` loggers.
Apr 17, 2023
315a6c8
fix: updated build process & repository enhancements (#13)
cofin Apr 24, 2023
84a7b2b
feat: Upgrade to Litestar alpha 5 & testing updates (#15)
cofin Apr 27, 2023
0be2059
fix: updated process handling & run as factory
Apr 28, 2023
95581da
feat: Adds an example of integrating `aiosql`, `sqlalchemy` and `lite…
cofin Apr 28, 2023
e8614ec
fix: re-add accidentally removed `profile` route
Apr 28, 2023
8de65f0
fix: additional tests and adjusted dependency
Apr 29, 2023
15b9901
fix: move aiosql into query files. Add paginated results helper
Apr 30, 2023
14f841c
fix: enable base model caching
Apr 30, 2023
2ef4c2e
fix: simplify aiosql class
Apr 30, 2023
40f392f
fix: remove extra variable
Apr 30, 2023
ad0b612
fix: remove the `from_orm` override in preference of a `association_p…
Apr 30, 2023
9547e93
feat: add additional association proxies
Apr 30, 2023
4e00391
chore: linting updates
Apr 30, 2023
e2787b0
fix: corrected test cases.
May 1, 2023
0627aa5
fix: remove extra DB_ prefix from a few settings (#18)
patrickarmengol May 4, 2023
0f4140d
fix: various test case corrections and enhancements
May 7, 2023
4167014
feat: basic example of calling the litestar cli from another click app.
May 7, 2023
fccd306
feat: adds tests for crypt functions
May 7, 2023
fb666b2
feat: adds additional tests for user login
May 7, 2023
2ea42c0
feat: system health check endpoint and additional test.
May 8, 2023
615cb1d
feat: serves the SAQ UI through Litestar (#20)
cofin May 9, 2023
0589818
fix: corrects tests and worker launch process (#21)
cofin May 10, 2023
b1a62a9
fix: corrections to docker build process (#33)
cofin May 11, 2023
31bda77
fix: correct run command
cofin May 11, 2023
19de705
fix: remove unused make entry. updated env example
cofin May 11, 2023
110c1e8
fix: adds local flag to poetry config.
cofin May 11, 2023
9a419ee
feat: Makefile enhancements. additional serializers in the msgspec h…
cofin May 12, 2023
4d70b37
fix: migrate to updated model names for sqlalchemy
cofin May 12, 2023
d38039a
chore: lint/version bumps
cofin May 12, 2023
918d45d
fix: correct remaining test case for filter deps
cofin May 12, 2023
07e5c79
fix: address new `sync_to_thread` warnings and other test fixes
cofin May 13, 2023
d1d0ebf
feat: adds ability to have tasks and jobs available on different queues.
cofin May 13, 2023
7b3f20b
fix: use self-hosted saq UI
cofin May 14, 2023
f16c82e
fix: update timeout to prevent max job duration from exceeding.
cofin May 14, 2023
1abf102
fix: remove extra call
cofin May 14, 2023
4c35cbb
fix: version bumps
cofin May 17, 2023
81d3343
fix: moved signature namespace from `asgi.py`, separated `aiosql` mod…
cofin May 21, 2023
b1ed90b
feat: move saq to plugin (#34)
cofin May 23, 2023
8701612
feat: adds `to_dto` method to service
cofin May 25, 2023
1790f80
fix: parameter has been removed upstream
cofin May 26, 2023
2d00d73
fix: additional updates for upstream changes.
cofin May 26, 2023
046592e
chore: version bump
cofin May 27, 2023
d46df10
fix: adds updates tests
cofin Jun 4, 2023
c2a5e16
feat: app now uses litestar CLI
cofin Jun 4, 2023
7037c83
feat: swap to main branch of litestar
cofin Jun 5, 2023
661a266
feat: add example of default sorts
cofin Jun 7, 2023
bf3dc66
feat: adds example of many-to-many without association table.
cofin Jun 9, 2023
85bfbc8
fix: upgrade to litestar beta. squashed migrations to enabled DateTi…
cofin Jun 16, 2023
90031f8
fix: updated readme
cofin Jun 16, 2023
bc6ef7f
fix: updated readme
cofin Jun 16, 2023
14c588a
fix: remove outdated type_encoder
cofin Jun 22, 2023
eedd47b
feat: moves to dto implementation. (#36)
cofin Jun 26, 2023
959db41
feat: docker build enhancements. (#37)
cofin Jul 5, 2023
d5d85d8
feat: enhanced migration template
cofin Jul 11, 2023
478c7ef
feat: implement batched alter statements
cofin Jul 11, 2023
f474ce4
fix: updates for the orm sentinel changes
cofin Jul 15, 2023
3ef9264
fix: pydantic v2 support + latest litestar support
cofin Jul 15, 2023
4c83899
fix: docker build improvements
cofin Jul 15, 2023
2a12cad
fix: reference library version as default openapi version
cofin Jul 16, 2023
b4ae5ee
ci: move mypy config to pyproject.toml. Address deprecated import
cofin Jul 19, 2023
e460d5d
fix: additional deprecation changes
cofin Jul 19, 2023
074f8ba
tests: remove pytest docker and replace with custom implementation
cofin Jul 20, 2023
152cea7
feat: create `contrib` folder for easier management of plugins.
cofin Jul 20, 2023
4466b82
feat: move vite into a plugin format
cofin Jul 21, 2023
691770d
chore: upgrade to beta4
cofin Jul 21, 2023
c683d30
fix: updated signature namespace
cofin Jul 21, 2023
d0490d5
feat: rudimentary Windows support (#39)
3phedra Jul 29, 2023
891e732
fix: docker compose shell command (#40)
Faolain Jul 29, 2023
5fcc4e2
fix(exceptions): handle breaking change from middleware updates to li…
Faolain Aug 7, 2023
a755dd0
fix: update pre-commit, remove re2
cofin Aug 7, 2023
bf24bb3
feat: re-add imports
cofin Aug 8, 2023
9b6c38e
fix: remove `mypy.ini` reference from Dockerfile
cofin Aug 9, 2023
2be7ac7
fix: update copy-pasted description of the `reset-database` CLI comma…
Aug 10, 2023
7a2f79c
fix: update `cp .env` command in documentation (#46)
Aug 10, 2023
42a8f66
infra: set host to `0.0.0.0` instead of `127.0.0.1`. This enables ex…
cofin Aug 11, 2023
9463734
docs: adds banner artwork for future updates (#61)
cofin Aug 11, 2023
eeec275
fix: use built in auto-commit handler (#63)
cofin Aug 16, 2023
39ba71b
infra: fix `source` not found on some shells (#64)
cofin Aug 16, 2023
5d57a00
fix: make sure sessions are closed in tests (#62)
Aug 16, 2023
0ef30d7
infra: adds docker compose for running redis, db, mailhog only (#65)
cofin Aug 19, 2023
f8baaa6
chore(deps): bump actions/checkout from 3 to 4
dependabot[bot] Sep 4, 2023
43c8dc9
Merge pull request #70 from litestar-org/dependabot/github_actions/ac…
Goldziher Sep 5, 2023
80ad7e4
docs: update README.md features (#68)
tomviner Sep 15, 2023
ad118e8
fix: cleanup tests and correct imports (#71)
cofin Sep 15, 2023
85afd2c
Add build plan and start command for Railway (#67)
brody192 Sep 16, 2023
1b91b05
ci: apply pre-commit
JacobCoffee Sep 16, 2023
9a84690
meta: org updates (#72)
JacobCoffee Sep 16, 2023
45f7a09
ci: fix badges
JacobCoffee Sep 16, 2023
f11fdc4
ci: fix badges
JacobCoffee Sep 16, 2023
3185c95
feat: upgraded support for litestar 2.1.1 (#78)
cofin Sep 26, 2023
d9aa54d
fix: small typo using print (#79)
aorith Sep 30, 2023
6bf83ba
feat: enable Alembic CLI integration (#80)
cofin Oct 1, 2023
fc91c18
chore: migrate to PDM (#81)
cofin Oct 2, 2023
01880bd
feat: swap to `aiosql`, `vite`, and `saq` plugins (#82)
cofin Oct 5, 2023
649cbdd
chore: align license with litestar-org (#83)
cofin Oct 5, 2023
62733bd
fix: correct `aiosql` import (#84)
cofin Oct 5, 2023
0587794
feat: move to `advanced_alchemy` services (#85)
cofin Oct 8, 2023
64da7b7
fix: update ``.env`` ``alembic.ini`` path (#86)
JacobCoffee Oct 12, 2023
06c0b5f
chore: correct container build issues (#87)
cofin Oct 13, 2023
f23d181
fix: Run async tests with `anyio` and `asyncio` backend (#89)
FranzForstmayr Oct 17, 2023
8a89fa1
fix: handle default behaviour change in `CollectionFilter` for empty …
cofin Oct 19, 2023
df72846
feat: adds a custom entrypoint (#92)
cofin Oct 24, 2023
64a2866
feat: add version identifier for pdm, railway, rtx, etc.
JacobCoffee Nov 5, 2023
6303474
fix: updates for `AsyncCallable` changes (#94)
cofin Nov 8, 2023
464043e
docs: fix pdm install command (#93)
Faolain Nov 8, 2023
e188969
fix: adds anyio marker (#95)
cofin Nov 10, 2023
492cec6
fix: add infrastructure checks for `redis` and `postgres` (#99)
cofin Nov 15, 2023
00910fa
docs: add them (#101)
JacobCoffee Nov 24, 2023
aabd6bb
fix(docs): use the correct import paths
JacobCoffee Nov 24, 2023
9408a6a
docs: add an edit button to all pages (#103)
JacobCoffee Nov 24, 2023
c1c57cf
fix: docker connection error tests by moving away from legacy docker-…
Faolain Nov 28, 2023
d00d32a
chore: upgrade deps (#106)
cofin Nov 29, 2023
dc56484
chore: update nixpack config (#107)
cofin Nov 29, 2023
bcdeb23
chore: remove duplicated tests (#109)
cofin Nov 30, 2023
b39261c
test: Integration test for /health (#97)
FranzForstmayr Nov 30, 2023
43db2c4
build: add uninstall target (#110)
mvsrgc Dec 3, 2023
2467768
chore(deps): bump actions/setup-python from 4 to 5 (#111)
dependabot[bot] Dec 7, 2023
49e49a7
feat: upgrade `litestar-vite` (#113)
cofin Dec 10, 2023
a3a6bd5
feat: remove `mkdocs` reference (#114)
cofin Dec 10, 2023
52dbfea
fix: railway deployment (#115)
cofin Dec 10, 2023
07d8c5a
fix: command typo
cofin Dec 10, 2023
a1aa52d
chore(deps): bump dawidd6/action-download-artifact from 2 to 3 (#117)
dependabot[bot] Dec 13, 2023
001dd42
chore(deps): bump github/codeql-action from 2 to 3 (#116)
dependabot[bot] Dec 13, 2023
bab48d8
feat: updates `litestar-vite` to latest configuration (#118)
cofin Dec 13, 2023
c835751
fix: use `server_lifespan` (#123)
cofin Jan 13, 2024
4d87483
fix: `structlog` corrections (#124)
cofin Jan 13, 2024
84337c1
refactor: changed params to Annotated form (#122)
rosstitmarsh Jan 14, 2024
dc72eee
feat: UI and application enhancements (#121)
cofin Feb 25, 2024
23a26a7
fix: use `to_dict` to convert to dict (#129)
darinkishore Mar 6, 2024
9551a2b
chore(deps): bump pre-commit/action from 3.0.0 to 3.0.1 (#126)
dependabot[bot] Mar 6, 2024
46e8fd3
chore(deps): bump pdm-project/setup-pdm from 3 to 4 (#125)
dependabot[bot] Mar 6, 2024
ab7344d
chore(deps): bump actions/upload-artifact from 3 to 4 (#119)
dependabot[bot] Mar 7, 2024
42c85b2
chore: update docs and dependencies (#130)
cofin Mar 8, 2024
a09a4a8
fix: use settings db engine instance (#131)
cofin Mar 10, 2024
7b3a1ae
chore: updated docstrings for `Tag` Controller (#132)
cofin Mar 11, 2024
5bc5d1e
fix: routing correction (#133)
cofin Mar 12, 2024
d94f93f
chore: optimize database testing (#134)
cofin Mar 12, 2024
b5b90ec
test: remove event_loop fixture (#135)
peterschutt Mar 13, 2024
e0823eb
fix: set HMR host (#136)
cofin Mar 16, 2024
f32e890
fix: remove quotes from `VITE_HOST` variable (#137)
cofin Mar 19, 2024
6efbef4
fix: updated configuration for packages (#138)
cofin Mar 21, 2024
5cbc78a
fix: signature for _sqla_on_begin method (#140)
sorasful Mar 23, 2024
227792d
fix: Use to_dict method instead of __dict__ for UserUpdate (#142)
sorasful Mar 23, 2024
e473460
fix: use built in `UUID` (#144)
cofin Mar 30, 2024
b0f22e9
fix: invalid use of isinstance for HTTP exceptions checking (#146)
sorasful Apr 1, 2024
2a7ae57
docs: update details position in readme (#145)
cemremengu Apr 2, 2024
d317db3
fix: logout now correctly deletes cookie in client (#147)
sorasful Apr 3, 2024
4f3e29e
feat: use `pytest-databases` and updated `advanced-alchemy` (#148)
cofin Apr 7, 2024
9d3da13
fix: detect full driver name before configuring engine (#149)
cofin Apr 9, 2024
3c1adb1
chore: bump testing deps (#150)
cofin Apr 10, 2024
8bfdd53
fix(docs): new discord link (#153)
JacobCoffee Apr 14, 2024
166f086
feat: CLI update to use alchemy config (#152)
cofin Apr 17, 2024
4df6ac9
fix: Improve parsing of ALLOWED_CORS_ORIGINS (#151)
TheGreatAlgo Apr 17, 2024
642be2f
fix: doc correction and updated test compatibility (#157)
cofin May 6, 2024
654da72
fix: upgrade AA and remove unnecessary ignores (#158)
cofin May 6, 2024
ae90139
chore: pin to latest litestar release (#159)
cofin May 6, 2024
115f7b1
feat: upgrade to latest `advanced-alchemy` (#160)
cofin May 23, 2024
037147a
chore: updated `advanced-alchemy` to `v0.11.1` (#162)
cofin May 30, 2024
f58eb67
fix: use signature_types to avoid exception (#163)
cofin Jun 2, 2024
63ad9ab
chore(deps): bump dawidd6/action-download-artifact from 3 to 5 (#164)
dependabot[bot] Jun 4, 2024
8e6edb9
refactor: Use constant for true value check (#165)
Tobi-De Jun 8, 2024
d5aebb4
feat: upgrade advance alchemy (#166)
cofin Jun 11, 2024
a557d39
chore(deps): bump dawidd6/action-download-artifact from 5 to 6 (#167)
dependabot[bot] Jun 13, 2024
5b6ec30
fix: .env.docker.example missing quotes (#169)
ch-iv Jun 24, 2024
1bdb040
feat: use valkey instead of redis (#170)
cofin Jun 24, 2024
1f0dac5
feat: updates repositories to latest examples (#172)
cofin Jun 27, 2024
fb59486
chore: updated dependencies (#173)
cofin Jul 2, 2024
3a8c189
fix: typo in valkey image name (#174)
Alc-Alc Jul 2, 2024
84b64cd
Initial commit
Jul 25, 2024
85002bd
Add tenant model
Jul 25, 2024
9cad286
Fix database creds in env file
Jul 25, 2024
652be23
Remove traces of frontend app
Jul 25, 2024
aa9bd7f
Migration: Added tenant and linked to user
Jul 25, 2024
4174422
Add tenant model and link with user
Jul 29, 2024
daad944
Add company model
Jul 29, 2024
7cd38da
Add tenant and company routes
Jul 29, 2024
302e613
Use custom json serialiser(the litestar default `encode_json` convert…
Jul 29, 2024
176abd6
Update redis local port
Jul 29, 2024
8c799ea
Code cleanup
Jul 30, 2024
835be76
Add company to migration and new domain jobs including model
Jul 30, 2024
de98971
Code cleanup
Jul 31, 2024
5e5ddfc
Add people domain, person model and APIs
Jul 31, 2024
693088e
Add company person relation table
Jul 31, 2024
328a1c9
Add domain opportunities along with models
Aug 3, 2024
e7455d9
Fix opportunity get methods
Aug 3, 2024
afd78e3
Fix author and license
Aug 4, 2024
640072c
Add opentofu infrastructure provisioning templates
Aug 8, 2024
630c32d
Add github action to build and push image to ecr and push ecs task de…
Aug 8, 2024
b037e6d
Code cleanup
Aug 8, 2024
ae59f7d
Fix branch name
Aug 8, 2024
2d8c1da
Remove the login step
Aug 8, 2024
797eb05
Add ecr module to main
Aug 8, 2024
dd86402
Fix ecs service and ecr repo name
Aug 8, 2024
cbeab1b
Fix ecr login in github action
Aug 9, 2024
22a5d21
Update aws credentials action
Aug 9, 2024
1eb6664
Add permissions for oidc auth
Aug 9, 2024
0f0666d
Fix typo
Aug 9, 2024
3807815
Add oidc identity provider for github actions
Aug 9, 2024
c6e72a2
Fix github action role
Aug 9, 2024
c5c6a71
Rename license file
Aug 9, 2024
005bc4d
Fix docker file
Aug 9, 2024
4823ee5
Fix cpu and memory type
Aug 9, 2024
fa4ae48
Fix resource in github action policy
Aug 9, 2024
0270973
Fix github action role
Aug 9, 2024
195bdaf
Add log groups for db-migrator and worker
Aug 9, 2024
026d56e
Create app database
Aug 9, 2024
fa458ac
Fix rds command
Aug 9, 2024
2be87df
Fix secret paths
Aug 9, 2024
ada1c71
Fix secret paths and ecr repo name
Aug 10, 2024
d12734b
Update iam rds secrets in ecs task role
Aug 10, 2024
feba9d3
Fix typo
Aug 10, 2024
0e276b5
Fix permissions for ecs execution and task roles
Aug 10, 2024
221a1dd
Fix comment
Aug 10, 2024
e1d0008
Fix ssm parameter secret paths
Aug 10, 2024
07406bd
Fix license classifier
Aug 11, 2024
0522d6e
Fix keywords and paths in pyproject.toml
Aug 11, 2024
f9f97d5
Fix dockerfiles
Aug 11, 2024
be2695e
Cleanyp docker compose file
Aug 11, 2024
bd138f9
Don't use hatching build system
Aug 11, 2024
ae8b8c3
Fix location and funding type
Aug 11, 2024
0dac84e
Add redis url environment variable
Aug 11, 2024
73cfcd0
chore(deps): bump aws-actions/amazon-ecr-login from 1 to 2
dependabot[bot] Aug 12, 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
Binary file removed .DS_Store
Binary file not shown.
12 changes: 0 additions & 12 deletions .bumpversion.cfg

This file was deleted.

7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.venv
venv
node_modules
__pycache__
*.pyc
dist/
tmp/
30 changes: 30 additions & 0 deletions .env.docker.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# App
SECRET_KEY='secret-key'
LITESTAR_DEBUG=true
LITESTAR_HOST=0.0.0.0
LITESTAR_PORT=8000
APP_URL=http://localhost:${LITESTAR_PORT}

LOG_LEVEL=10
# Database
DATABASE_ECHO=true
DATABASE_ECHO_POOL=true
DATABASE_POOL_DISABLE=false
DATABASE_POOL_MAX_OVERFLOW=5
DATABASE_POOL_SIZE=5
DATABASE_POOL_TIMEOUT=30
DATABASE_URL=postgresql+asyncpg://chapter:chapter@db:5432/chapter

# Cache
REDIS_URL=redis://cache:6379/0

SAQ_USE_SERVER_LIFESPAN=False # don't use with docker.
SAQ_WEB_ENABLED=True
SAQ_BACKGROUND_WORKERS=1
SAQ_CONCURRENCY=1

VITE_HOST=localhost
VITE_PORT=3006
VITE_HOT_RELOAD=True
VITE_DEV_MODE=True
ALLOWED_CORS_ORIGINS=["localhost:3006","localhost:8000"]
32 changes: 0 additions & 32 deletions .env.example

This file was deleted.

29 changes: 29 additions & 0 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# App
SECRET_KEY='secret-key'
LITESTAR_DEBUG=true
LITESTAR_HOST=0.0.0.0
LITESTAR_PORT=8089
APP_URL=http://localhost:${LITESTAR_PORT}

LOG_LEVEL=10
# Database
DATABASE_ECHO=true
DATABASE_ECHO_POOL=true
DATABASE_POOL_DISABLE=false
DATABASE_POOL_MAX_OVERFLOW=5
DATABASE_POOL_SIZE=5
DATABASE_POOL_TIMEOUT=30
DATABASE_URL=postgresql+asyncpg://chapter:chapter@localhost:5432/chapter

REDIS_URL=redis://localhost:6379/0

# Worker
SAQ_USE_SERVER_LIFESPAN=True
SAQ_WEB_ENABLED=True
SAQ_BACKGROUND_WORKERS=1
SAQ_CONCURRENCY=1

VITE_HOST=localhost
VITE_PORT=5174
VITE_HOT_RELOAD=True
VITE_DEV_MODE=False
16 changes: 16 additions & 0 deletions .env.testing
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# App
SECRET_KEY='secret-key'

# Cache
REDIS_URL=redis://localhost:6397/0

SAQ_USE_SERVER_LIFESPAN=False # don't use with docker.
SAQ_WEB_ENABLED=True
SAQ_BACKGROUND_WORKERS=1
SAQ_CONCURRENCY=1

VITE_HOST=localhost
VITE_PORT=3006
VITE_HOT_RELOAD=True
VITE_DEV_MODE=True
VITE_USE_SERVER_LIFESPAN=False
54 changes: 54 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:react-hooks/recommended",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react-refresh", "react", "@typescript-eslint", "react-hooks"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"react/jsx-filename-extension": ["warn", { extensions: [".tsx"] }],
"import/extensions": [
"error",
"ignorePackages",
{ ts: "never", tsx: "never" },
],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/explicit-function-return-type": [
"error",
{ allowExpressions: true },
],
"@typescript-eslint/no-explicit-any": "off",
"max-len": ["warn", { code: 120, ignoreComments: true, ignoreUrls: true }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": "off",
"react/prop-types": "off",
"prettier/prettier": ["error", { endOfLine: "auto" }],
},
settings: {
"import/resolver": {
typescript: {},
},
},
}
17 changes: 0 additions & 17 deletions .flake8

This file was deleted.

7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Code owner settings for `litestar fullstack`
# @maintainers should be assigned to all reviews.
# Most specific assignment takes precedence though, so if you add a more specific thing than the `*` glob, you must also add @maintainers
# For more info about code owners see https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-example

# Global Assignment
* @cofin @litestar-org/maintainers @litestar-org/members
92 changes: 92 additions & 0 deletions .github/workflows/aws-ecs-deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# This workflow will build and push a new container image to Amazon ECR,
# and then will deploy a new task definition to Amazon ECS, when there is a push to the "master" branch.
#
# To use this workflow, you will need to complete the following set-up steps:
#
# 1. Create an ECR repository to store your images.
# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`.
# Replace the value of the `ECR_REPOSITORY` environment variable in the workflow below with your repository's name.
# Replace the value of the `AWS_REGION` environment variable in the workflow below with your repository's region.
#
# 2. Create an ECS task definition, an ECS cluster, and an ECS service.
# For example, follow the Getting Started guide on the ECS console:
# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun
# Replace the value of the `ECS_SERVICE` environment variable in the workflow below with the name you set for the Amazon ECS service.
# Replace the value of the `ECS_CLUSTER` environment variable in the workflow below with the name you set for the cluster.
#
# 3. Store your ECS task definition as a JSON file in your repository.
# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`.
# Replace the value of the `ECS_TASK_DEFINITION` environment variable in the workflow below with the path to the JSON file.
# Replace the value of the `CONTAINER_NAME` environment variable in the workflow below with the name of the container
# in the `containerDefinitions` section of the task definition.
# Note: Use `latest` tag instead of overwriting the image id into task definition container name. This is better
# than updating multiple container definitions in a task definition.
#
# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.
# See the documentation for each action used below for the recommended IAM policies for this IAM user,
# and best practices on handling the access key credentials.

name: Deploy to Amazon ECS

on:
push:
branches: ["main"]

env:
AWS_REGION: eu-central-1 # set this to your preferred AWS region, e.g. us-west-1
ECR_REPOSITORY: chapter-app-repository-prod # set this to your Amazon ECR repository name
ECS_SERVICE: chapter-app-service-prod # set this to your Amazon ECS service name
ECS_CLUSTER: chapter-app-cluster-prod # set this to your Amazon ECS cluster name
ECS_TASK_DEFINITION:
deploy/aws/ecs-task-definition-prod.json # set this to the path to your Amazon ECS task definition
# file, e.g. .aws/task-definition.json
# containerDefinitions section of your task definition
DOCKERFILE: deploy/aws/Dockerfile.app # Container dockerfile
IMAGE_LATEST_TAG: latest # latest tag name

permissions:
contents: read
id-token: write

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: production

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Configure AWS credentials using OIDC
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOYER_ROLE_NAME }}
aws-region: ${{ env.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
run: |
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_LATEST_TAG -f $DOCKERFILE .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_LATEST_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_LATEST_TAG" >> $GITHUB_OUTPUT

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ env.ECS_TASK_DEFINITION }}
service: ${{ env.ECS_SERVICE }}
cluster: ${{ env.ECS_CLUSTER }}
wait-for-service-stability: true
Loading
Loading