Skip to content

Commit

Permalink
Backend: replace the Python code with a stub written in Go.
Browse files Browse the repository at this point in the history
  • Loading branch information
paveloom committed Sep 10, 2024
1 parent 2511dea commit 4e5f36c
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 512 deletions.
7 changes: 1 addition & 6 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
/**/*.egg-info/
/**/__pycache__/
/.ruff_cache/
/.venv/
/build/
/dist/
/flowey
16 changes: 16 additions & 0 deletions backend/flowey.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package main

import (
"fmt"
"log"
"net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello there!")
}

func main() {
http.HandleFunc("/", handler)
log.Fatal(http.ListenAndServe(":12345", nil))
}
3 changes: 3 additions & 0 deletions backend/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module flowey

go 1.23.0
42 changes: 0 additions & 42 deletions backend/pyproject.toml

This file was deleted.

246 changes: 0 additions & 246 deletions backend/requirements-dev.txt

This file was deleted.

161 changes: 0 additions & 161 deletions backend/requirements.txt

This file was deleted.

Empty file removed backend/src/flowey/__init__.py
Empty file.
53 changes: 0 additions & 53 deletions backend/src/flowey/server/__init__.py

This file was deleted.

6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

nodejs_latest

python312
go_1_23
gopls
];
};
};
Expand Down

0 comments on commit 4e5f36c

Please sign in to comment.