From 6bd8d9b3b578a3b956ca220a270f62bc00e9a89d Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 29 Jun 2020 17:13:04 +0000 Subject: [PATCH] first commit --- README.md | 9 ++++++++- main.go | 16 ++++++++++++++++ requirements.yaml | 6 ++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100755 main.go create mode 100755 requirements.yaml diff --git a/README.md b/README.md index c84fe6a..51ff186 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ # StreamWatcher -Can watch and record several streams, optionally based on annotated areas. \ No newline at end of file +Can watch and record several streams, optionally based on annotated areas. + +## Setup + +### Conda + +Install env: +`conda env create -f requirements.yaml` \ No newline at end of file diff --git a/main.go b/main.go new file mode 100755 index 0000000..e6df11d --- /dev/null +++ b/main.go @@ -0,0 +1,16 @@ +package main + +import ( + "fmt" + "log" + "net/http" +) + +func root(w http.ResponseWriter, r *http.Request){ + fmt.Fprint(w, "Root dfsdssite") +} + +func main() { + http.HandleFunc("/", root) + log.Fatal(http.ListenAndServe(":8080", nil)) +} \ No newline at end of file diff --git a/requirements.yaml b/requirements.yaml new file mode 100755 index 0000000..8ba42bc --- /dev/null +++ b/requirements.yaml @@ -0,0 +1,6 @@ +name: go +channels: + - conda-forge +dependencies: + - go=1.13.12 + - gxx_linux-64 \ No newline at end of file