Skip to content

Update README.md#2

Open
JohnAmadeo wants to merge 1 commit into
masterfrom
JohnAmadeo-patch-1
Open

Update README.md#2
JohnAmadeo wants to merge 1 commit into
masterfrom
JohnAmadeo-patch-1

Conversation

@JohnAmadeo

Copy link
Copy Markdown
Owner

No description provided.

@JohnAmadeo

Copy link
Copy Markdown
Owner Author

1234

@JohnAmadeo

Copy link
Copy Markdown
Owner Author

This is an issue comment

@JohnAmadeo

Copy link
Copy Markdown
Owner Author

This is an issue comment v2

@JohnAmadeo

Copy link
Copy Markdown
Owner Author

This is an issue comment v4

@JohnAmadeo

Copy link
Copy Markdown
Owner Author

This is an issue comment v5

Comment thread README.md
# Intro (for people new to Go)
# Intro (for people new to Golang)
- Check out [A Tour of Go](https://tour.golang.org/welcome/1) to learn Go syntax
- Download Go [Downloads](https://golang.org/dl/)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an inline comment, created by clicking 'Comment' instead of 'Start a review'

@JohnAmadeo JohnAmadeo left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an edited-v2 review body comment

Comment thread README.md
@JohnAmadeo

JohnAmadeo commented Oct 29, 2025

Copy link
Copy Markdown
Owner Author

This is an edited issue comment v5

Comment thread README.md
# Intro (for people new to Go)
# Intro (for people new to Golang)
- Check out [A Tour of Go](https://tour.golang.org/welcome/1) to learn Go syntax
- Download Go [Downloads](https://golang.org/dl/)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a inline comment, created with 'Start a review'

@JohnAmadeo JohnAmadeo left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a body comment

Comment thread README.md
# Intro (for people new to Go)
# Intro (for people new to Golang)
- Check out [A Tour of Go](https://tour.golang.org/welcome/1) to learn Go syntax
- Download Go [Downloads](https://golang.org/dl/)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an inline comment 1

Comment thread README.md
@@ -1,4 +1,4 @@
# Intro (for people new to Go)
# Intro (for people new to Golang)
- Check out [A Tour of Go](https://tour.golang.org/welcome/1) to learn Go syntax

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an inline comment 2

Comment thread README.md
@@ -1,4 +1,4 @@
# Intro (for people new to Go)
# Intro (for people new to Golang)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an inline comment 3

Comment thread README.md
@@ -1,4 +1,4 @@
# Intro (for people new to Go)
# Intro (for people new to Golang)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an inline comment

mcode-app Bot referenced this pull request in shuertaMC/mealbot-sergio-test Jan 23, 2026
…e serving

This commit implements the core FastAPI application infrastructure including:

**FastAPI Application Setup:**
- Created app/main.py with FastAPI instance configured with title="Mealbot API"
- OpenAPI documentation automatically available at /docs and /openapi.json
- Root endpoint (/) returns welcome message with API info
- Health check endpoint (/health) returns {"status": "ok"}

**CORS Middleware:**
- Configured CORSMiddleware to match Go implementation behavior from cors.go
- Allows all origins (["*"]) to mirror the Origin header behavior
- Allows credentials (allow_credentials=True)
- Allows methods: GET, POST, DELETE (matching cors.go line 21)
- Allows headers: Authorization, Content-Type, Origin, Accept, token (matching cors.go line 9)
- Handles OPTIONS preflight requests automatically

**Static File Serving:**
- Mounted StaticFiles at /static path (resolves Design Decision #5)
- Copied privacy.html and sample.csv from source repository to dst/static/
- Used Path-based directory resolution for portability
- Static files accessible at /static/privacy.html and /static/sample.csv

**Testing:**
- Created comprehensive test suite in tests/test_main.py
- 14 tests covering health endpoint, root endpoint, CORS headers, static files, and OpenAPI docs
- All tests pass successfully

**Security:**
- Created .gitleaks.toml configuration to allowlist test fixtures
- Test RSA keys in tests/test_auth.py (from Task #2) are properly documented as synthetic keys
- These are test-only fixtures for JWT authentication testing that should never be used in production
- Gitleaks scanner passes with no false positives

**Implementation Note:**
Settings are not loaded at module level in main.py to avoid validation errors during testing. This allows tests to run without requiring all environment variables to be set.

The application successfully starts with `uvicorn app.main:app --port 8080` and all functionality is verified through automated tests.

Milestone No.: 1
Task No.: 3
Task ID: 9
mcode-app Bot referenced this pull request in shuertaMC/mealbot-sergio-test Jan 23, 2026
…e serving: merge from mealbot-sergio-test-milestone_1-task_3-ab86fa

This commit implements the core FastAPI application infrastructure including:

**FastAPI Application Setup:**
- Created app/main.py with FastAPI instance configured with title="Mealbot API"
- OpenAPI documentation automatically available at /docs and /openapi.json
- Root endpoint (/) returns welcome message with API info
- Health check endpoint (/health) returns {"status": "ok"}

**CORS Middleware:**
- Configured CORSMiddleware to match Go implementation behavior from cors.go
- Allows all origins (["*"]) to mirror the Origin header behavior
- Allows credentials (allow_credentials=True)
- Allows methods: GET, POST, DELETE (matching cors.go line 21)
- Allows headers: Authorization, Content-Type, Origin, Accept, token (matching cors.go line 9)
- Handles OPTIONS preflight requests automatically

**Static File Serving:**
- Mounted StaticFiles at /static path (resolves Design Decision #5)
- Copied privacy.html and sample.csv from source repository to dst/static/
- Used Path-based directory resolution for portability
- Static files accessible at /static/privacy.html and /static/sample.csv

**Testing:**
- Created comprehensive test suite in tests/test_main.py
- 14 tests covering health endpoint, root endpoint, CORS headers, static files, and OpenAPI docs
- All tests pass successfully

**Security:**
- Created .gitleaks.toml configuration to allowlist test fixtures
- Test RSA keys in tests/test_auth.py (from Task #2) are properly documented as synthetic keys
- These are test-only fixtures for JWT authentication testing that should never be used in production
- Gitleaks scanner passes with no false positives

**Implementation Note:**
Settings are not loaded at module level in main.py to avoid validation errors during testing. This allows tests to run without requiring all environment variables to be set.

The application successfully starts with `uvicorn app.main:app --port 8080` and all functionality is verified through automated tests.

Milestone No.: 1
Task No.: 3
Task ID: 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant