diff options
| author | garder500 <jeremy27.clara22@gmail.com> | 2025-04-27 00:25:18 +0200 |
|---|---|---|
| committer | garder500 <jeremy27.clara22@gmail.com> | 2025-04-27 00:25:18 +0200 |
| commit | b3791125200154278d31514217c4f417d8961e84 (patch) | |
| tree | 722566748ed34d6c922b1a315ce500c251417747 | |
| parent | 4e01398d4f9a74f7c5272a8e0d99ec0f23fac189 (diff) | |
Ajout de la logique de démarrage de l'application et des dépendances nécessaires
| -rw-r--r-- | app/cmd/main.go | 20 | ||||
| -rw-r--r-- | app/go.sum | 2 | ||||
| -rw-r--r-- | app/internal/.gitignore | 0 | ||||
| -rw-r--r-- | devenv.nix | 5 |
4 files changed, 27 insertions, 0 deletions
diff --git a/app/cmd/main.go b/app/cmd/main.go new file mode 100644 index 0000000..c13de97 --- /dev/null +++ b/app/cmd/main.go @@ -0,0 +1,20 @@ +package main + +import ( + "net/http" +) + +func init() { + // Initialize the application +} + +func main() { + + mux := http.NewServeMux() + // Start the application + mux.HandleFunc("GET /", func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte("Hello, World!")) + }) + + panic(http.ListenAndServe(":2030", mux)) +} diff --git a/app/go.sum b/app/go.sum new file mode 100644 index 0000000..e3078d7 --- /dev/null +++ b/app/go.sum @@ -0,0 +1,2 @@ +github.com/arangodb/go-driver/v2 v2.1.3 h1:PpLSe8E2RalFuqTGi2yfHDe3ltOomfFCIToB66p1lr8= +github.com/arangodb/go-driver/v2 v2.1.3/go.mod h1:aoDzrsO7PQEFat3Q9pp4zfv6W+WotA7GcCeJQJfX+tc= diff --git a/app/internal/.gitignore b/app/internal/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/internal/.gitignore @@ -44,5 +44,10 @@ make -j$NIX_BUILD_CORES ''; + scripts.start.exec = '' + cd app + go run cmd/main.go + ''; + # Supprimer la configuration brew inutile dans Nix } |
