Skip to content

Commit f322266

Browse files
authored
Merge pull request #1 from europanite/feature/develop
Feature/develop
2 parents 7c12f58 + 9613421 commit f322266

51 files changed

Lines changed: 15245 additions & 194 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Git
2+
.git
3+
.gitignore
4+
5+
# Python cache
6+
__pycache__/
7+
*.py[cod]
8+
*.pyo
9+
*.pyd
10+
11+
# Node
12+
node_modules/
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
17+
# Local env/config
18+
.env
19+
*.env
20+
*.local
21+
22+
# OS / IDE
23+
.DS_Store
24+
Thumbs.db
25+
desktop.ini
26+
.vscode/
27+
.idea/
28+
29+
# Build artifacts
30+
dist/
31+
build/
32+
web-build/
33+
.expo/
34+
.expo-shared/

.env

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Postgres
2+
POSTGRES_USER=postgres
3+
POSTGRES_PASSWORD=postgres
4+
POSTGRES_DB=postgres
5+
6+
# Backend
7+
BACKEND_PORT=8000
8+
9+
# Auth
10+
AUTH_SECRET=change-this-to-a-long-random-string
11+
AUTH_EXPIRE_MINUTES=60
12+
13+
# DB
14+
DB_HOST=db
15+
DB_PORT=5432
16+
DB_NAME=app_db
17+
DB_USER=app_user
18+
DB_PASS=app_pass
19+
DATABASE_URL=postgresql+psycopg[binary]://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}
20+
21+
# Frontend (Expo)
22+
EXPO_TUNNEL=false
23+
EXPO_DEVTOOLS_LISTEN_ADDRESS=0.0.0.0
24+
EXPO_PUBLIC_API_HOST=${REACT_NATIVE_PACKAGER_HOSTNAME}
25+
EXPO_PUBLIC_API_PORT=8000
26+
EXPO_PUBLIC_API_BASE=http://${EXPO_PUBLIC_API_HOST}:${EXPO_PUBLIC_API_PORT}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
title: "[Bug] "
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## Description
10+
<!-- A clear and concise description of what the bug is -->
11+
12+
## Steps to Reproduce
13+
1. Go to '...'
14+
2. Click on '....'
15+
3. Scroll down to '....'
16+
4. See error
17+
18+
## Expected Behavior
19+
<!-- A clear and concise description of what you expected to happen -->
20+
21+
## Screenshots
22+
<!-- If applicable, add screenshots to help explain your problem -->
23+
24+
## Environment
25+
- OS: [e.g. Ubuntu 22.04]
26+
- Browser/Version: [e.g. Chrome 117]
27+
- Node/Python Version: [e.g. Node 18, Python 3.10]
28+
29+
## Additional Context
30+
<!-- Add any other context about the problem here -->

.github/pull_request_template.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Pull Request
2+
3+
## Overview
4+
<!-- Briefly describe the purpose of this PR and the problem it solves -->
5+
6+
## Changes
7+
<!-- List the main changes made in this PR -->
8+
-
9+
10+
## Testing
11+
<!-- Describe how you tested the changes -->
12+
- [ ] Built and ran locally without errors
13+
- [ ] All tests passed
14+
- [ ] Verified functionality manually (describe how)
15+
16+
## Related Issues
17+
<!-- Link to related issues if applicable -->
18+
- Closes #
19+
20+
## Checklist
21+
- [ ] Code is clean and free of unnecessary comments/debug prints
22+
- [ ] Proper naming conventions and documentation are followed
23+
- [ ] Updated documentation/README if necessary
24+
- [ ] CI pipeline passes successfully
25+
26+
## Notes for Reviewers
27+
<!-- Additional context or things reviewers should pay attention to -->

.github/workflows/deploy-pages.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy Expo Web to GitHub Pages
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency:
11+
group: "pages"
12+
cancel-in-progress: true
13+
jobs:
14+
build:
15+
if: github.ref == 'refs/heads/main'
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Use Node.js 20
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: npm
25+
cache-dependency-path: |
26+
frontend/app/package-lock.json
27+
- name: Install deps
28+
working-directory: frontend/app
29+
run: npm ci
30+
- name: Build (expo export -p web)
31+
working-directory: frontend/app
32+
run: npx expo export -p web
33+
# dist/
34+
- name: Upload Pages artifact
35+
uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: frontend/app/dist
38+
deploy:
39+
if: github.ref == 'refs/heads/main'
40+
needs: build
41+
runs-on: ubuntu-latest
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

.github/workflows/docker.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Frontend Tests via Docker
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
jobs:
6+
docker-tests:
7+
runs-on: ubuntu-latest
8+
env:
9+
CI: "1"
10+
EXPO_TUNNEL: "false"
11+
EXPO_DEVTOOLS_LISTEN_ADDRESS: 0.0.0.0
12+
REACT_NATIVE_PACKAGER_HOSTNAME: 127.0.0.1
13+
EXPO_PUBLIC_API_BASE: http://localhost:8000
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
19+
- name: Run tests via docker-compose (deterministic CI)
20+
run: |
21+
docker compose -f docker-compose.test.yml up --build --exit-code-from frontend_test
22+
- name: Upload test reports (if mounted)
23+
if: always()
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: frontend-reports
27+
path: reports/frontend
28+
if-no-files-found: warn

.github/workflows/frontend.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Frontend Unit Tests
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
test:
7+
name: Run Jest (React Native / Expo)
8+
runs-on: ubuntu-latest
9+
env:
10+
CI: "1"
11+
EXPO_PUBLIC_API_BASE: http://localhost:8000
12+
EXPO_TUNNEL: "false"
13+
EXPO_DEVTOOLS_LISTEN_ADDRESS: 0.0.0.0
14+
REACT_NATIVE_PACKAGER_HOSTNAME: 127.0.0.1
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Use Node.js 20
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: npm
23+
cache-dependency-path: |
24+
frontend/app/package-lock.json
25+
- name: Install dependencies
26+
working-directory: frontend/app
27+
run: npm ci
28+

0 commit comments

Comments
 (0)