Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
90 changes: 90 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [Monitoring & Metrics](#monitoring--metrics)
- [Setup](#setup)
- [Future](#future)
- [Directories Structure](#directories-structure)

## API

Expand Down Expand Up @@ -51,6 +52,8 @@ The dockerised API is lint, tested, and pushed to [Docker Hub](https://hub.docke

## Kubernetes

This is my local cluster setup.

![k8s-flow](project-info/k8s-flow.svg)

**API Traffic Flow**
Expand Down Expand Up @@ -133,3 +136,90 @@ You should see something like if everything is ok:
- try using an ingress controller for exposing the API with K8s
- learn more about Go and implement things like the repository pattern for the API
- add caching to the API

### Directories Structure

```
└── 📁rssagg
└── 📁.github
└── 📁workflows
└── push_img_to_hub.yaml
└── run_tests.yaml
└── 📁docs # Go swagger generated API documentation
└── 📁grafana # Grafana dashboards
└── api-logs-dashboard.json
└── k8s-pods-dashboard.json
└── 📁internal # Go API internals
└── 📁auth
└── auth.go
└── 📁database
└── db.go
└── feed_follows.sql.go
└── feeds.sql.go
└── logs.sql.go
└── migration.go
└── models.go
└── posts.sql.go
└── users.sql.go
└── 📁handlers
└── api.go
└── err.go
└── feed_follows.go
└── feed.go
└── middleware_auth.go
└── middleware_log.go
└── readiness.go
└── user.go
└── 📁mockdb
└── db.go
└── 📁rss
└── rss.go
└── scraper.go
└── 📁utils
└── json.go
└── models.go
└── 📁kubernetes # K8s configs
└── api-deploy-svc.yaml
└── db-deploy-svc.yaml
└── db-pv.yaml
└── db-pvc.yaml
└── db-secret.yaml
└── linter-config.yaml
└── network-policy.yaml
└── 📁project-info
└── 📁sqlc # Database migrations
└── 📁queries
└── feed_follows.sql
└── feeds.sql
└── logs.sql
└── posts.sql
└── users.sql
└── 📁schema
└── 001_users.sql
└── 002_users_apikey.sql
└── 003_feeds.sql
└── 004_feed_follows.sql
└── 005_feeds_lastfetchedat.sql
└── 006_posts.sql
└── 007_logging.sql
└── 008_default_user.sql
└── 📁tests
└── api_test.go
└── auth_test.go
└── containers.go
└── err_test.go
└── feeds_test.go
└── main_test.go
└── posts_test.go
└── users_test.go
└── .gitignore
└── .pre-commit-config.yaml
└── docker-compose.yaml
└── Dockerfile
└── entrypoint.sh
└── go.mod
└── go.sum
└── main.go
└── README.md
└── sqlc.yaml
```
2 changes: 1 addition & 1 deletion project-info/k8s-flow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.