Add full monorepo: virtual-banker, backend, frontend, docs, scripts, deployment

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-02-10 11:32:49 -08:00
parent aafcd913c2
commit 88bc76da91
815 changed files with 125522 additions and 264 deletions

View File

@@ -0,0 +1,42 @@
package main
import (
"log"
"net/http"
"os"
"github.com/elastic/go-elasticsearch/v8"
"github.com/explorer/backend/api/search"
"github.com/explorer/backend/search/config"
)
func main() {
searchConfig := config.LoadSearchConfig()
esConfig := elasticsearch.Config{
Addresses: []string{searchConfig.URL},
}
if searchConfig.Username != "" {
esConfig.Username = searchConfig.Username
esConfig.Password = searchConfig.Password
}
client, err := elasticsearch.NewClient(esConfig)
if err != nil {
log.Fatalf("Failed to create Elasticsearch client: %v", err)
}
service := search.NewSearchService(client, searchConfig.IndexPrefix)
mux := http.NewServeMux()
mux.HandleFunc("/api/v1/search", service.HandleSearch)
port := os.Getenv("SEARCH_PORT")
if port == "" {
port = "8082"
}
log.Printf("Starting search service on :%s", port)
log.Fatal(http.ListenAndServe(":"+port, mux))
}