diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..b24fb4e --- /dev/null +++ b/TODO.md @@ -0,0 +1,6 @@ +# TODO + +- Compile templates into binary (with go.rice) +- Increase ease of use for people who want to try Ekster +- Hosted version?? +- Per user backends diff --git a/docker-compose.yml b/docker-compose.yml index d485d4f..71fe999 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '2' services: redis: - image: "redis" + image: "redis:5" web: image: "pstuifzand/eksterd:alpine" @@ -9,10 +9,14 @@ services: links: - redis:redis volumes: + - .:/app:ro - ./data:/opt/microsub + entrypoint: /app/eksterd + command: -auth=false -port 80 -templates /app/templates ports: - - 80 + - 8089:80 environment: - "FEEDBIN_USER=" - "FEEDBIN_PASS=" - "EKSTER_BASEURL=" + - "EKSTER_TEMPLATES=/app/templates" diff --git a/pkg/fetch/fetch_test.go b/pkg/fetch/fetch_test.go new file mode 100644 index 0000000..1f1bd78 --- /dev/null +++ b/pkg/fetch/fetch_test.go @@ -0,0 +1,33 @@ +package fetch + +import ( + "net/http" + "strings" + "testing" + + "github.com/stretchr/testify/assert" +) + +func fetcher(fetchURL string) (*http.Response, error) { + return nil, nil +} + +func TestFeedHeader(t *testing.T) { + doc := ` + +
+