new file: api/Dockerfile
new file: api/bin/api.exe new file: api/cmd/main.go new file: api/go.mod new file: api/go.sum new file: api/src/configs/APIserver.go new file: api/src/configs/DBconfig.go new file: api/src/initializers/PGQL_DB.go new file: api/src/initializers/Routing.go new file: api/src/models/Contacts.go new file: api/src/models/Essence.go new file: api/src/models/Point.go new file: api/src/models/authDataStructs.go new file: api/src/models/user.go new file: api/src/rt/admin/users.go new file: api/src/rt/auth/Login.go new file: api/src/rt/auth/Registr.go new file: api/src/rt/auth/authAdminMiddlware.go new file: api/src/rt/auth/authMiddleware.go new file: api/src/rt/auth/auth_test.go new file: api/src/rt/prf/AuthUserMiddleWare.go new file: api/src/rt/prf/profile.go new file: api/src/rt/srch/search.go new file: api/src/storages/psql/psql.go new file: docker-compose.yml Changes not staged for commit: modified: ../.env deleted: ../api/Dockerfile deleted: ../api/Makefile deleted: ../api/bin/api.exe deleted: ../api/cmd/main.go deleted: ../api/go.mod deleted: ../api/go.sum deleted: ../api/src/configs/APIserver.go deleted: ../api/src/configs/DBconfig.go deleted: ../api/src/initializers/PGQL_DB.go deleted: ../api/src/initializers/Routing.go deleted: ../api/src/models/Contacts.go deleted: ../api/src/models/Essence.go deleted: ../api/src/models/Point.go deleted: ../api/src/models/authDataStructs.go deleted: ../api/src/models/user.go deleted: ../api/src/rt/admin/users.go deleted: ../api/src/rt/auth/Login.go deleted: ../api/src/rt/auth/Registr.go deleted: ../api/src/rt/auth/authAdminMiddlware.go deleted: ../api/src/rt/auth/authMiddleware.go deleted: ../api/src/rt/auth/auth_test.go deleted: ../api/src/rt/prf/AuthUserMiddleWare.go deleted: ../api/src/rt/prf/profile.go deleted: ../api/src/rt/srch/search.go deleted: ../api/src/storages/psql/psql.go deleted: ../db/docker-compose.yml modified: ../docker-compose.yaml movve file tino new directo for towo service rest api and d
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"api/src/configs"
|
||||
"api/src/initializers"
|
||||
"log/slog"
|
||||
"os"
|
||||
)
|
||||
|
||||
// TODO write the tests
|
||||
|
||||
var APIServerCnf configs.APIserver
|
||||
var PSQLCnf configs.PSQLConfig
|
||||
var SecretKey = []byte(os.Getenv("SECRET_KEY"))
|
||||
|
||||
func main() {
|
||||
slog.Info("Start")
|
||||
initializers.InitChiRouting()
|
||||
initializers.InitDBconnection()
|
||||
slog.Info("server is closed", "info", <-initializers.Done)
|
||||
slog.Info("End")
|
||||
}
|
||||
Reference in New Issue
Block a user