Skip to content

Commit d74829f

Browse files
committed
fix backend gitignore
1 parent ce3659e commit d74829f

6 files changed

Lines changed: 728 additions & 1 deletion

File tree

backend/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Backend-H8
1111
backend
1212
!build
1313
# MacOS build
14-
cmd
14+
cmd/cmd
15+
cmd/logger/
1516

1617
# EXCEL
1718
*.xlsx

backend/cmd/config.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main
2+
3+
import (
4+
"github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter"
5+
"github.com/HyperloopUPV-H8/h9-backend/internal/server"
6+
"github.com/HyperloopUPV-H8/h9-backend/internal/vehicle"
7+
)
8+
9+
type Config struct {
10+
Excel excel_adapter.ExcelAdapterConfig
11+
Vehicle vehicle.Config
12+
Server server.Config
13+
}

backend/cmd/config.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
[server.local]
3+
address = "127.0.0.1:4000"
4+
static = "./static"
5+
6+
[server.local.endpoints]
7+
pod_data = "/podDataStructure"
8+
order_data = "/orderStructures"
9+
programable_boards = "/uploadableBoards"
10+
connections = "/backend"
11+
files = "/"
12+
13+
[vehicle]
14+
boards = ["VCU"]
15+
16+
[excel.download]
17+
id="1NyNaAOw_6iWtnCpEg73AtSSFx1fMdhPRmmdOhjgjCZI"
18+
name = "ade.xlsx"
19+
path = "."
20+
21+
[excel.parse]
22+
global_sheet_prefix = "GLOBAL "
23+
board_sheet_prefix = "BOARD "
24+
table_prefix = "[TABLE] "
25+
[excel.parse.global]
26+
address_table = "addresses"
27+
backend_key = "Backend"
28+
blcu_address_key = "BLCU"
29+
units_table = "units"
30+
ports_table = "ports"
31+
board_ids_table = "board_ids"
32+
message_ids_table = "message_ids"

0 commit comments

Comments
 (0)