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

v0.1 - A First Release #55

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
65bb891
ci(tests/handlers): add bruno requests for accounts
Aug 28, 2024
a558a90
feat: add unprotected routes to config
Aug 28, 2024
2112453
feat(handlers/user): add cookie.Domain and handler for getting curren…
Aug 28, 2024
cba28f7
feat(accounts): implement handler, repository for accounts.
Aug 28, 2024
5e7ee15
feat: add routes and groups for accounts handler
Aug 28, 2024
39770a2
feat(frontend): login working
Aug 28, 2024
04ed6fb
build(deps): bump solid-js from 1.8.21 to 1.8.22 in /frontend (#42)
dependabot[bot] Aug 28, 2024
03369f3
feat(repositories): add repo for external accounts
Aug 29, 2024
1429f31
build(makefile): adjust makrfile
Aug 29, 2024
17e7a8c
build(docker): adjust dockerfile
Sep 3, 2024
cdc4394
chore: use sqlite driver that is non cgo
Sep 3, 2024
8e912e2
wip: add category handler
Sep 4, 2024
443b756
chore: implement tests
Sep 25, 2024
11234c8
Merge remote-tracking branch 'origin/main' into first-usable-version
Sep 25, 2024
1207ba7
fix: remove deprecated package in go.mod
Sep 25, 2024
34719ed
refactor: return proper status code for the situation
Sep 25, 2024
49051dd
feat: implement handlers for categories
Sep 25, 2024
252d7b1
fix: adjust cors
Sep 26, 2024
af4195f
wip: frontend rework
Sep 26, 2024
dc8c539
test: setup frontend testing
Sep 26, 2024
2eb1039
build(client): remove pnpm-lock.yml
Sep 26, 2024
1ce1e47
refactor(client): move Requestor to common-folder
Sep 26, 2024
293c131
feat: frontend testing & routing
Sep 26, 2024
94b463a
chore: remove example files
Sep 26, 2024
892d5b4
build: update package.json
Sep 26, 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
36 changes: 36 additions & 0 deletions .github/workflows/testing-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Client Testing

on:
push:
branches: [ main ]
paths:
- 'client/**'
pull_request:
branches: [ main ]
paths:
- 'client/**'

jobs:
test:
runs-on: ubuntu-latest

steps:
# Checkout the code from the repository
- name: Checkout code
uses: actions/checkout@v3

# Set up Node.js environment (this assumes your project uses Node.js, adjust the version if needed)
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Adjust this to match your project requirements

# Install dependencies
- name: Install dependencies
run: npm install
working-directory: ./client # Specify the directory where your `package.json` is located (adjust if necessary)

# Run tests
- name: Run tests
run: npm test
working-directory: ./client # Ensure the correct directory is specified where tests should run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go CI
name: Backend Testing

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"mode": "auto",
"program": "${fileDirname}",
"env": {
"GOOSE_DRIVER": "sqlite3",
"GOOSE_DRIVER": "sqlite",
"GOOSE_DBSTRING": "test.db"
}
}
Expand Down
18 changes: 17 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM golang:1.23-alpine as builder
FROM docker.io/golang:1.23-alpine as builder
WORKDIR /build
RUN apk add alpine-sdk
RUN go install github.com/pressly/goose/v3/cmd/goose@latest
COPY server/go.mod server/go.sum ./
RUN apk add make
Expand All @@ -8,3 +9,18 @@ RUN go mod tidy
COPY server/ ./
RUN make build

FROM docker.io/node:alpine as frontend
WORKDIR /build
COPY frontend/package.json frontend/package-lock.json ./
RUN npm install
COPY frontend/ ./
RUN npm run build

FROM scratch
WORKDIR /app
COPY --from=builder /build/bin/app /app/
COPY --from=frontend /build/dist /app/frontend/
ENV DB_DRIVER="sqlite"
ENV DB_STRING="test.db"
EXPOSE 8080
CMD ["./app"]
File renamed without changes.
Loading
Loading