-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added new entities and repositories * added first (but useless) controller * started on implementing account controller * Getting started on a completely new backend using different technologies * Started work on new schema * added transaction tables * move back to a single permissions table * added contracts and tags * added budget tables * added file attachment support * updated compose file * Inited loco-project Add todo because transaction type has some problems * schema optimizations - added global bank accounts - added type to transaction - added purpose and note to transactions * removed useless api_key column * Added missing schemas and data - expanded schema - added currency data * added some more workspace files * hopefully finalized schema - removed inheritance - fixed budget tables * More basic setup * A lot of schema and setup work * updated crates * removed useless `linked_transactions` table * Some more dev fixes * more initial setup work * updated dependencies * Yeah some restructure * hopefully fixed basic workflows * added entities and removed some other stuff * Basic OpenApi setup * updated rust * remvoed uuids * More auth, services, snowflakes etc. * enhance snowflake generator + added scheduler * used initializers & clippy fixes * some improvvements idk * Updated crates * Errors and auth start * Errors and auth start * use scheduler * Allow 0 as node id * More errors and other shit * renamed a response * enhanced docker image builds * Added verify endpoint to users * Replaced basic macro with proc_macro for enhanced code generation * enhanced macro with utoipa response generation * added some more docs * implemented new macro * improved released profile * updated config + storage integration * mapped all loco errors * added instance manager * Improved instance handling and removed cleanup task * completed user controller * added session controller * finished session controller * made details field optional * fixed docs * added status endpoints * temporary route fixes Fixes: loco-rs/loco#1116 * Fixed docker builds (hopefully) * started fixing tests * some improvements * added comments on how to solve the ValidationError thing * fixed model::users tests * fixed build and test workflow * added test case for openapi routes * added some new test + fixed a few endpoints and schema issues * added more tests Note: Somehow if we run tests only the first one succeeds and closes the pool * fixed all remaining tests + db error * fixed `.env.dist` * added extra build step to test ci * fixed insta building
- Loading branch information
1 parent
3906f5c
commit c06d536
Showing
388 changed files
with
17,814 additions
and
2,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# cargo audit | ||
- name: Install cargo-audit | ||
run: cargo install --force cargo-audit | ||
- name: Run cargo-audit | ||
run: cargo audit --ignore RUSTSEC-2023-0071 # Marvin attack (RSA) crate. Being worked on. | ||
- uses: rustsec/audit[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
working-directory: ./backend | ||
ignore: RUSTSEC-2023-0071, RUSTSEC-2024-0370 | ||
|
||
clippy: | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Publish Edge Docker Images | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'backend/**' | ||
|
||
concurrency: | ||
group: "edge-docker-images" | ||
cancel-in-progress: false | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
backend-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
env: | ||
IMAGE_NAME: jt-foss/backend | ||
# Set default working directory | ||
defaults: | ||
run: | ||
working-directory: ./backend # Change the working directory to /backend | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=sha | ||
type=edge | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: ./backend | ||
file: ./backend/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Publish Production Docker Images | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
paths: | ||
- 'backend/**' | ||
|
||
concurrency: | ||
group: "prod-docker-images" | ||
cancel-in-progress: false | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: jt-foss/backend | ||
|
||
jobs: | ||
backend-image: | ||
if: github.event_name == 'create' && github.event.ref_type == 'tag' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
env: | ||
IMAGE_NAME: jt-foss/backend | ||
# Set default working directory | ||
defaults: | ||
run: | ||
working-directory: ./backend # Change the working directory to /backend | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: ./backend | ||
file: ./backend/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[alias] | ||
loco = "run --" | ||
loco-rl = "run --release --" | ||
loco-tool = "run --bin tool --" | ||
playground = "run --example playground" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
target | ||
Dockerfile | ||
docs | ||
logs | ||
.github | ||
.dockerignore | ||
.git | ||
.gitignore | ||
.idea | ||
.editorconfig | ||
.env | ||
.env.dist | ||
rust-toolchain.toml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.editorconfig |
Oops, something went wrong.