gost / server

GOST - Go implementation of OGC SensorThings API
MIT License
61 stars 19 forks source link

Reorganize src code #60

Closed bertt closed 7 years ago

bertt commented 7 years ago

Proposal:

docker-compose.yml

. gost-db 

   Dockerfile (base image mdillon/postgis)

   create_gost_db.sql

. gost-dashboard 

   Dockerfile (base image nginx)

   nginx.conf

   index.html

     . css

     . js

     . viewers

. gost-service 

    Dockerfile (base image golang:latest)

    main.go

    config.yaml

Ports: . gost-dashboard: 8080 . gost-service: 8081 . gost-db: 5432

tebben commented 7 years ago

extra folder .gost-service means an extra addition in the go imports, making it too large for example: import ( github.com/geodan/gost/src/gost-service/sensorthings/odata )

Other proposal, moving docker files away from the gost source code to keep it clean:

bertt commented 7 years ago

other options: . database code also in other repository . remove 'src' from namespace, in my case the go code resides in D:\dev\go\src\github.com\geodan\gost\src with two times 'src' :-(

bertt commented 7 years ago

database stuff is moved to https://github.com/geodan/gost-db dashboard stuff we'll move to https://github.com/geodan/gost-dashboard in later release

bertt commented 7 years ago

some tasks identified:

bertt commented 7 years ago

html/js code is copied to new repository: https://github.com/gost/dashboard dashboard is running on nginx there

bertt commented 7 years ago

html/js code for dashboard is removed from this repository

bertt commented 7 years ago

next task: remove src directory

bertt commented 7 years ago
tebben commented 7 years ago

Removed src folder in https://github.com/Geodan/gost/commit/9a4877defd6a5eafcd17a243d39b4e8bb7fe74b6